getBool static method
Convert the value to a boolean, if value is None, return the default value.
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);