stringToIterableInt function Null safety

Iterable<int> stringToIterableInt(
  1. String value
)

Generates an Iterable of int from a String with a json array structure

Example:

String array = '[1,2]'
List<int> list = stringToIterableInt(array).toList();

Implementation

Iterable<int> stringToIterableInt(final String value) =>
    stringToIterable(value, (e) => int.parse(e));