updateValue method

Future<void> updateValue(
  1. K key,
  2. V? changeValue(
    1. V? value
    ), {
  3. bool notifyOnNull = false,
})

Update or replace value by key directly in the storage.

Implementation

Future<void> updateValue(K key, V? Function(V? value) changeValue,
        {bool notifyOnNull = false}) =>
    _ensureResource(key)
        .then((r) => r.updateValue(changeValue, notifyOnNull: notifyOnNull));