operator []= method

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

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

operator []=(value, T item) {
  _items[_getIndex(value)] = item;
}