getBool method

  1. @override
Future<bool?> getBool(
  1. String key, [
  2. bool enableEncryption = false
])
override

Implementation

@override
Future<bool?> getBool(String key, [bool enableEncryption = false]) {
  bool? value = bool.tryParse(_getItem(key));
  if (value == null) {
    throw Exception('REFERENCE_ERROR');
  } else {
    return Future<bool?>.value(value);
  }
}