operator []= method
Implementation
void operator []=(int index, T value) {
fields ??= <T>[];
if (fields!.length <= index) {
throw Exception('Index out of range: $index');
} else {
fields![index] = value;
}
}
void operator []=(int index, T value) {
fields ??= <T>[];
if (fields!.length <= index) {
throw Exception('Index out of range: $index');
} else {
fields![index] = value;
}
}