operator [] method
Provides an indexable way to access this tuple's items.
Implementation
dynamic operator [](int index) {
switch (index) {
case 0:
return item0;
case 1:
return item1;
case 2:
return item2;
case 3:
return item3;
}
throw RangeError.index(index, this, 'index', 'index out of range', 4);
}