NavigationView.switcher constructor

const NavigationView.switcher({
  1. Key? key,
  2. Key? navKey,
  3. required List<NavigationItem> items,
  4. Duration? animationDuration,
  5. Axis direction = Axis.horizontal,
  6. bool reversed = false,
  7. NavigationHorizontalConfig? horizontal,
  8. NavigationVerticalConfig? vertical,
  9. Color? indicatorColor,
  10. ShapeBorder? indicatorShape,
  11. Color? backgroundColor,
  12. double? elevation,
  13. NavigationLabelType? labelType,
  14. NavBuilder? builder,
  15. Curve? switchInCurve,
  16. Curve? switchOutCurve,
  17. AnimatedSwitcherTransitionBuilder? transitionBuilder,
  18. AnimatedSwitcherLayoutBuilder? layoutBuilder,
  19. bool showBar = true,
  20. ValueChanged<int>? onPageChanged,
})

Implementation

const NavigationView.switcher({
  super.key,
  this.navKey,
  required this.items,
  this.animationDuration,
  this.direction = Axis.horizontal,
  this.reversed = false,
  this.horizontal,
  this.vertical,
  this.indicatorColor,
  this.indicatorShape,
  this.backgroundColor,
  this.elevation,
  this.labelType,
  this.builder,
  this.switchInCurve,
  this.switchOutCurve,
  this.transitionBuilder,
  this.layoutBuilder,
  this.showBar = true,
  this.onPageChanged,
})  : usePageView = false,
      pageViewCurve = null;