putAndUpdateExisting method
Future<void>
putAndUpdateExisting(
- TKey key,
- T newValue,
- void mutateExisting(
- TKey key,
- T? mutateMe,
- T newValueReadOnly
inherited
Same as put, but instead of removing old object, changes (mutates) its values to newValue
Implementation
Future<void> putAndUpdateExisting(
TKey key,
TVal newValue,
void Function(TKey key, TVal? mutateMe, TVal newValueReadOnly)
mutateExisting,
) async {
await putAllAndUpdateExisting({key: newValue}, mutateExisting);
}