operator []= method

void operator []=(
  1. int index,
  2. T newValue
)

Implementation

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