operator []= method

void operator []=(
  1. int index,
  2. V value
)

Sets the item at the specified index to the specified value.

@ai Use this operator for standard list access.

Implementation

void operator []=(final int index, final V value) {
  _items = ([..._items]..[index] = value).unmodifiable;
}