operator []= method
Sets the element at the specified index
.
Throws RangeError if index
is out of bounds.
Implementation
@override
void operator []=(int index, T value) {
if (index >= 0 && index < length) {
_items[_normalizeIndex(index)] = value;
} else {
throw RangeError.index(index, this);
}
}