saveBool static method
Implementation
static Future<bool> saveBool(String key, bool? value,
[bool defaultValue = false]) async {
final prefs = await SharedPreferences.getInstance();
return prefs.setBool(key, value ?? defaultValue);
}
static Future<bool> saveBool(String key, bool? value,
[bool defaultValue = false]) async {
final prefs = await SharedPreferences.getInstance();
return prefs.setBool(key, value ?? defaultValue);
}