updateString method

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

Updates an existing String key with a new value.

Throws StorageException if the key does not exist.

Implementation

Future<void> updateString(String key, String newValue) async {
  await _assertExists(key);
  await setString(key, newValue);
}