savedBoolValue static method
saveBoolValue
Save bool value to SharedPreferences
- Param
value
The value to save - Param
key
The key to save the value
Implementation
static Future<bool> savedBoolValue(String key, bool value) async {
final preferences = await SharedPreferences.getInstance();
return preferences.setBool(key, value);
}