getBool method
Future<bool?>
getBool(
- String key, {
- SharedPreferencesPlusOptions options = const SharedPreferencesPlusOptions(),
override
Reads a boolean value for key.
Implementation
@override
Future<bool?> getBool(
String key, {
SharedPreferencesPlusOptions options = const SharedPreferencesPlusOptions(),
}) async {
final value = (await getAll(options: options))[key];
return value is bool ? value : null;
}