getBool method

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

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

Implementation

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