convertList<T> method
- List? value, {
- EnumConvertFunction? enumConvert,
Implementation
List<T?>? convertList<T>(List<dynamic>? value,
{EnumConvertFunction? enumConvert}) {
if (value == null) {
return null;
}
try {
return value.map((dynamic e) => _asT<T>(e, enumConvert: enumConvert))
.toList();
} catch (e, stackTrace) {
debugPrint('asT<$T> $e $stackTrace');
if (onError != null) {
onError!(e, stackTrace);
}
return <T>[];
}
}