operator [] method Null safety

Interval operator [](
  1. int index
)

Implementation

Interval operator [](int index) {
  return this._intervals[index];
}