TabRouter constructor

TabRouter({
  1. Key? key,
  2. int initialIndex = 0,
  3. List<TabPageDescriptor> pages = const [],
  4. bool lazy = false,
  5. Widget tabBuilder(
    1. BuildContext context,
    2. List<String> tabs,
    3. int index
    )?,
  6. double tabHeight(
    1. BuildContext context
    )?,
})

Implementation

TabRouter({
  super.key,
  this.initialIndex = 0,
  this.pages = const [],
  this.lazy = false,
  this.tabBuilder,
  this.tabHeight,
}) {
  assert(pages.isNotEmpty, 'TabRouter requires at least one tab page but got ${pages.length}');
  assert(initialIndex >= 0 && initialIndex < pages.length, 'TabRouter requires initialTab to be between 0 and ${pages.length - 1} but got $initialIndex');
}