TabBar constructor

const TabBar({
  1. required List<TabBarItem> tabs,
  2. required int selectedIndex,
  3. required void onChanged(
    1. int index
    ),
  4. bool fill = false,
  5. Key? key,
})

Implementation

const TabBar({
  required this.tabs,
  required this.selectedIndex,
  required this.onChanged,
  this.fill = false,
  super.key,
});