getPrefsBool method
Implementation
Future<bool?> getPrefsBool({required String key}) async {
try {
final sharedPreferences = await SharedPreferences.getInstance();
final value = sharedPreferences.getBool(key);
return Future.value(value);
} catch (e) {
print(key + " getPrefsBool: " + e.toString());
return null;
}
}