updateInt method

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

Updates an existing key with a new int value.

Implementation

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