Tabs constructor

Tabs({
  1. Key? key,
  2. required List<Widget> pages,
  3. required IndexedTabBarItemBuilder tabBarItemBuilder,
  4. CustomIndicator? indicator,
  5. Axis direction = Axis.horizontal,
  6. bool pinned = false,
  7. int initialPage = 0,
  8. double tabbarHeight = 50,
  9. double? tabbarWidth,
})

Implementation

Tabs({
  Key? key,
  required this.pages,
  required this.tabBarItemBuilder,
  this.indicator,
  this.direction = Axis.horizontal,
  this.pinned = false,
  this.initialPage = 0,
  this.tabbarHeight = 50,
  this.tabbarWidth,
})  : assert(pinned == false || (pinned == true && tabbarWidth != null)),
      super(key: key);