Tabs constructor

const Tabs({
  1. Key? key,
  2. List<String> tabs = const ['Tab 1', 'Tab 2', 'Tab 3'],
  3. int selectedIndex = 0,
  4. TabsType type = TabsType.gray,
  5. ValueChanged<int>? onTabSelected,
})

Creates a Tabs navigation instance.

Implementation

const Tabs({
  super.key,
  this.tabs = const ['Tab 1', 'Tab 2', 'Tab 3'],
  this.selectedIndex = 0,
  this.type = TabsType.gray,
  this.onTabSelected,
});