operator []= method

  1. @override
void operator []=(
  1. int index,
  2. T value
)
override

Set the element at the given index. For read-only arrays, this will throw an UnsupportedError. Must be implemented by subclasses that support modification.

Implementation

@override
void operator []=(int index, T value) {
  throw UnsupportedError('This array is read-only');
}