updateInt method

Future<void> updateInt(
  1. String key,
  2. int newValue
)

Updates an existing int key with a new value.

Implementation

Future<void> updateInt(String key, int newValue) async {
  await _assertExists(key);
  await setInt(key, newValue);
}