TabRouter constructor
TabRouter({
- Key? key,
- int initialIndex = 0,
- List<
TabPageDescriptor> pages = const [], - bool lazy = false,
- Widget tabBuilder(
- BuildContext context,
- List<
String> tabs, - int index
- double tabHeight(
- 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');
}