getBool method

bool getBool(
  1. String key, [
  2. bool? defaultValue
])

Returns bool value by key

If map not contains key or the value has a different type and defaultValue is null then throw FormatException

Implementation

bool getBool(String key, [bool? defaultValue]) {
  return _value(key, defaultValue);
}