replace method

  1. @override
void replace(
  1. T item, {
  2. String? key,
  3. bool notify = true,
})
override

Updates the value of item.

This only works when the ids of the new and old value are identical.

Implementation

@override
void replace(T item, {String? key, bool notify = true}) {
  super.replace(item, key: key);
  if (notify) notifyListeners();
}