operator []= method
void
operator []=(
- dynamic key,
- 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;
}