operator []= method
Implementation
void operator []=(int index, E element) {
if (index < this.value.length) {
List<E> list = this.value;
list[index] = element;
this.value = list;
} else {
throw Exception('Provided index $index out of range');
}
}