setBool static method

Future<bool?> setBool(
  1. String key,
  2. bool value
)

Implementation

static Future<bool?> setBool(String key, bool value) async {
  _cache[key] = value;
  prefs!.setBool(key, value);
  return getBool(key);
}