getIndex method

int getIndex(
  1. int tabIndex
)

Implementation

int getIndex(int tabIndex) {
  return indexMap[tabIndex]?.value ?? 0;
}