getBool method
Implementation
Future<bool?> getBool({
required String key,
bool defaultValue = false,
}) async {
try {
return Database.getSharedPreferences().getBool(key) ?? defaultValue;
} catch (_) {}
return defaultValue;
}
Future<bool?> getBool({
required String key,
bool defaultValue = false,
}) async {
try {
return Database.getSharedPreferences().getBool(key) ?? defaultValue;
} catch (_) {}
return defaultValue;
}