saveBool static method

Future<void> saveBool(
  1. bool data,
  2. String key
)

Implementation

static Future<void> saveBool(bool data, String key) async {
  final SharedPreferences prefs = await SharedPreferences.getInstance();
  await prefs.setBool(key, data);
}