operator [] method

Step? operator [](
  1. int index
)

Implementation

Step? operator [](int index) {
  if (index < 0 || index >= steps.length) {
    return null;
  }
  return steps[index];
}