getBool method

bool getBool(
  1. String key, {
  2. bool defVal = false,
})

Gets the value for a given key as a bool. Returns defVal if the key does not exist.

Implementation

bool getBool(String key, {bool defVal = false}) {
  final k = _getKey(key);
  if (k == null) return defVal;
  return _remoteConfig.getBool(k);
}