operator [] method
Operator access
Implementation
Object? operator [](int i) {
switch (i) {
case 0:
return first;
case 1:
return second;
case 2:
return third;
}
throw IndexError.withLength(i, 3, indexable: this);
}