setBoolean static method

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

Saves a boolean value for key.

Implementation

static Future setBoolean(String key, {required bool value}) async {
  await _prefs.setBool(key, value);
}