parseIntList static method

List<int> parseIntList(
  1. dynamic value
)

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) {
  final result = maybeParseIntList(value);

  if (result == null) {
    throw Exception(
      'Non-nullable parseIntList was called but null was encountered',
    );
  }

  return result;
}