operator []= method

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

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

This method accepts a String as a key or an ItemSerializable, where its id is going to be used.

Implementation

void operator []=(key, T item) {
  _items[_getKey(key)] = item;
}