saveBoolData static method

Future<bool> saveBoolData({
  1. required String key,
  2. required bool value,
})

Implementation

static Future<bool> saveBoolData(
    {required String key, required bool value}) async {
  final prefs = await SharedPreferences.getInstance();
  return prefs.setBool(key, value);
}