TabSet.indexed constructor

TabSet.indexed({
  1. int defaultIndex = 0,
  2. required List<TabState> tabs,
})

Implementation

factory TabSet.indexed({int defaultIndex = 0, required List<TabState> tabs}) {
  return TabSet(
      defaultIndex: defaultIndex,
      tabs: tabs.mapIndexed((item, index) => item.withIndex(index)).toList());
}