updateBool method

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

Updates an existing bool key with a new value.

Implementation

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