openTab method Null safety

void openTab(
  1. int index
)

Open tab at index.