toBoolOr method
bool
toBoolOr(
- bool defaultValue, {
- dynamic mapKey,
- int? listIndex,
- DynamicConverter<
bool> ? converter,
Converts to bool, falling back to defaultValue on failure.
Implementation
bool toBoolOr(
bool defaultValue, {
dynamic mapKey,
int? listIndex,
DynamicConverter<bool>? converter,
}) =>
tryToBool(
mapKey: mapKey,
listIndex: listIndex,
defaultValue: defaultValue,
converter: converter,
) ??
defaultValue;