getBoolValue static method
getIntValue
Get int value from SharedPreferences
- Param
key
The key to get the value
Implementation
static Future<bool?> getBoolValue(String key) async {
final preferences = await SharedPreferences.getInstance();
final value = preferences.getBool(key);
return value;
}