stringToIterableInt function Null safety
- 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));