operator [] method

TabState operator [](
  1. int? index
)

Implementation

TabState operator [](int? index) {
  index ??= defaultIndex;
  return tabs[index];
}