getBool static method

bool? getBool(
  1. Object? value, [
  2. bool? defaultValue
])

assume value can be a config string: 'true', 'false', 'yes', 'no', 'on', 'off', '1', '0', ...

Implementation

static bool? getBool(Object? value, [bool? defaultValue]) =>
    converter.getBool(value, defaultValue);