operator [] method

dynamic operator [](
  1. int key
)

Gets or sets the element at the specified index.

Implementation

operator [](int key) => get(key);