Dart editor seems pretty happy with:
operator [](int i) => list[i]; // get
operator []=(int i, int value) => _list[i] = value; // set
Try it in DartPad
Dart editor seems pretty happy with:
operator [](int i) => list[i]; // get
operator []=(int i, int value) => _list[i] = value; // set
Try it in DartPad