isBools static method

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

Checks that if List list can be a List<bool>

Implementation

static bool isBools(Iterable list,
        {List<String> trues = const ['true', 'True'],
        List<String> falses = const ['false', 'False']}) =>
    list.every((e) => isBool(e, trues: trues, falses: falses));