operator []= method

  1. @override
void operator []=(
  1. dynamic value,
  2. T item
)
override

Sets the value of the item to item at the specified location.

This method accepts an int as an index, an String as an id, and an ItemSerializable as the item to remove.

Implementation

@override
operator []=(value, T item) {
  super[value] = item;
  notifyListeners();
}