updateBool method

Future<void> updateBool(
  1. String key, {
  2. required bool newValue,
})

Updates an existing key with a new bool value.

Implementation

Future<void> updateBool(String key, {required bool newValue}) async {
  _assertExists(key);
  await setBool(key, value: newValue);
}