getBool static method

Future getBool({
  1. required String key,
})

Implementation

static Future getBool({required String key}) async {
  final SharedPreferences sharedPreferences =
      await SharedPreferences.getInstance();
  var cache = sharedPreferences.getBool(key);
  return cache;
}