getBoolData static method

Future<bool?> getBoolData({
  1. required String key,
})

Implementation

static Future<bool?> getBoolData({required String key}) async {
  final prefs = await SharedPreferences.getInstance();

  return prefs.getBool(key);
}