TopTabBar constructor

const TopTabBar({
  1. Key? key,
  2. Key? tabBarKey,
  3. Key? tabBarViewKey,
  4. required List<TabItem> children,
  5. Decoration? indicator,
  6. Color? dividerColor,
  7. bool? enableFeedback,
  8. Color? indicatorColor,
  9. TabBarIndicatorSize? indicatorSize,
  10. Color? labelColor,
  11. EdgeInsetsGeometry? labelPadding,
  12. TextStyle? labelStyle,
  13. MouseCursor? mouseCursor,
  14. void onTap(
    1. int
    )?,
  15. MaterialStateProperty<Color?>? overlayColor,
  16. EdgeInsetsGeometry? padding,
  17. ScrollPhysics? physics,
  18. BorderRadius? splashBorderRadius,
  19. InteractiveInkFeatureFactory? splashFactory,
  20. Color? unselectedLabelColor,
  21. TextStyle? unselectedLabelStyle,
  22. ScrollPhysics? tabBarViewPhysics,
  23. Duration? animationDuration,
  24. int initialIndex = 0,
  25. bool primaryTabBar = true,
  26. bool isScrollable = false,
  27. double indicatorWeight = 2.0,
  28. double tabBarViewViewportFraction = 1.0,
  29. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  30. Clip tabBarViewClipBehavior = Clip.hardEdge,
  31. bool automaticIndicatorColorAdjustment = true,
  32. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  33. DragStartBehavior tabBarViewDragStartBehavior = DragStartBehavior.start,
  34. TabAlignment? tabAlignment,
})

Implementation

const TopTabBar({
  Key? key,
  this.tabBarKey,
  this.tabBarViewKey,
  required this.children,
  this.indicator,
  this.dividerColor,
  this.enableFeedback,
  this.indicatorColor,
  this.indicatorSize,
  this.labelColor,
  this.labelPadding,
  this.labelStyle,
  this.mouseCursor,
  this.onTap,
  this.overlayColor,
  this.padding,
  this.physics,
  this.splashBorderRadius,
  this.splashFactory,
  this.unselectedLabelColor,
  this.unselectedLabelStyle,
  this.tabBarViewPhysics,
  this.animationDuration,
  this.initialIndex = 0,
  this.primaryTabBar = true,
  this.isScrollable = false,
  this.indicatorWeight = 2.0,
  this.tabBarViewViewportFraction = 1.0,
  this.indicatorPadding = EdgeInsets.zero,
  this.tabBarViewClipBehavior = Clip.hardEdge,
  this.automaticIndicatorColorAdjustment = true,
  this.dragStartBehavior = DragStartBehavior.start,
  this.tabBarViewDragStartBehavior = DragStartBehavior.start,
  this.tabAlignment,
}) : super(key: key);