operator [] method

dynamic operator [](
  1. int index
)

Implementation

dynamic operator [](int index) {
  return _single != null && index == 0 ? _single : segments[index];
}