getBool method
Gets true if the key has the value "true", otherwise false.
Implementation
@protected
Future<bool?> getBool(String key) async {
final String? result = await get(key);
if (result == null) {
return null;
}
return bool.tryParse(result);
}