getBoolValue static method

Future<bool?> getBoolValue(
  1. String key
)

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;
}