operator []= method
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');
}