getBool method

bool? getBool(
  1. String key, {
  2. bool? defaultValue,
})

Get the boolean value associated with the specified key. Added for better integration with SharedPreferences

Implementation

bool? getBool(String key, {bool? defaultValue}) {
  assert(_key != null);
  return _decorator.getBool(key, defaultValue: defaultValue);
}