getBool method

  1. @override
bool getBool(
  1. String key
)
override

Gets the value for a given key as a bool.

Returns false if the key does not exist.

Implementation

@override
bool getBool(String key) {
  return _data[key]?.asBool() ?? _defaults[key]?.asBool() ?? RemoteConfigValue.defaultValueForBool;
}