replace method

  1. @override
void replace(
  1. T item, {
  2. 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, {bool notify = true}) {
  super.replace(item);
  if (notify) notifyListeners();
}