parseIntList static method
Parses the dynamic value
into a List of int values. The value may be
null, in which case null will be returned, or it may be an array of any
type, but each element in the array must be parsable into a valid int or
an error will be thrown.
Implementation
static List<int>? parseIntList(dynamic value) {
List<int>? result;
if (value is List) {
result = [];
for (var v in value) {
result.add(parseInt(v)!);
}
}
return result;
}