operator []= method
Implementation
void operator []=(int index, T newValue) {
if (_value[index] == newValue) return;
_value[index] = newValue;
notifyListeners();
}
void operator []=(int index, T newValue) {
if (_value[index] == newValue) return;
_value[index] = newValue;
notifyListeners();
}