getBool method Null safety
- {String? forKey}
Read as bool from persistent cache
Implementation
bool getBool({String? forKey}) {
assert(forKey != null);
final value = _storage[forKey];
if (value == null) {
return false;
}
return value;
}