setBool static method

Future setBool({
  1. required String key,
  2. required bool value,
})

Implementation

static Future setBool({required String key, required bool value}) async {
  final SharedPreferences sharedPreferences =
      await SharedPreferences.getInstance();
  await sharedPreferences.setBool(key, value);
}