operator [] method

T operator [](
  1. dynamic value
)

Returns the item at the location specified by value.

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

Implementation

T operator [](value) {
  return _items[_getIndex(value)];
}