toBools static method

Iterable<bool?> toBools(
  1. Iterable list, {
  2. List<String> trues = const ['true', 'True'],
  3. List<String> falses = const ['false', 'False'],
  4. bool? defaultValue,
})

Implementation

static Iterable<bool?> toBools(Iterable list,
        {List<String> trues = const ['true', 'True'],
        List<String> falses = const ['false', 'False'],
        bool? defaultValue}) =>
    list.map((e) =>
        toBool(e, trues: trues, falses: falses, defaultValue: defaultValue));