replace method
Updates the value of item
.
This only works when the ids of the new and old value are identical.
Implementation
void replace(T item, {String? key}) {
this[_getKey(key ?? item)] = item;
}
Updates the value of item
.
This only works when the ids of the new and old value are identical.
void replace(T item, {String? key}) {
this[_getKey(key ?? item)] = item;
}