TabBar constructor

TabBar({
  1. required List<TabItem> tabs,
  2. TabBarStyle? style,
  3. ColorToken? indicatorColor,
  4. ColorToken? labelColor,
  5. ColorToken? unselectedLabelColor,
  6. ColorToken? backgroundColor,
  7. int? initialIndex,
  8. bool scrollable = false,
  9. String? name,
  10. 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));