stringToIterableBool function Null safety

Iterable<bool> stringToIterableBool(
  1. String value
)

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

Example:

String array = '[true, false]'
List<bool> list = stringToIterableBool(array).toList();

Implementation

Iterable<bool> stringToIterableBool(final String value) =>
    stringToIterable(value, (e) => e == 'true');