TabBar constructor
TabBar({
- required List<
TabItem> tabs, - TabBarStyle? style,
- ColorToken? indicatorColor,
- ColorToken? labelColor,
- ColorToken? unselectedLabelColor,
- ColorToken? backgroundColor,
- int? initialIndex,
- bool scrollable = false,
- String? name,
- Object? visible,
Implementation
TabBar({
required List<TabItem> tabs,
this.style,
this.indicatorColor,
this.labelColor,
this.unselectedLabelColor,
this.backgroundColor,
this.initialIndex,
this.scrollable = false,
String? name,
Object? visible,
}) : tabs = List.unmodifiable(tabs),
super(name: name, visible: _normalizeVisibility(visible));