CustomTabBar constructor

const CustomTabBar({
  1. required IndexedTabBarItemBuilder builder,
  2. required int itemCount,
  3. required PageController pageController,
  4. double? height,
  5. Axis direction = Axis.horizontal,
  6. ValueChanged<int>? onTapItem,
  7. CustomIndicator? indicator,
  8. CustomTabBarController? tabBarController,
  9. double? width,
  10. bool pinned = false,
  11. bool controlJump = true,
  12. Key? key,
})

Implementation

const CustomTabBar(
    {required this.builder,
    required this.itemCount,
    required this.pageController,
    this.height,
    this.direction = Axis.horizontal,
    this.onTapItem,
    this.indicator,
    this.tabBarController,
    this.width,
    this.pinned = false,
    this.controlJump = true,
    Key? key})
    : assert(
          direction == Axis.horizontal ||
              (direction == Axis.vertical && indicator is RoundIndicator),
          "vertical direction only support RoundIndicator"),
      assert(
          direction == Axis.horizontal ||
              (direction == Axis.vertical && width != null),
          "vertical direction must set width property"),
      assert(pinned == true ||
          (pinned == false &&
              (direction == Axis.vertical || height != null))),
      super(key: key);