copyWith method

PersistentBottomNavBar copyWith({
  1. int? selectedIndex,
  2. double? iconSize,
  3. int? previousIndex,
  4. Color? backgroundColor,
  5. Duration? animationDuration,
  6. List<PersistentBottomNavBarItem>? items,
  7. ValueChanged<int>? onItemSelected,
  8. double? navBarHeight,
  9. EdgeInsets? margin,
  10. NavBarStyle? navBarStyle,
  11. double? horizontalPadding,
  12. NeumorphicProperties? neumorphicProperties,
  13. Widget? customNavBarWidget,
  14. dynamic popAllScreensForTheSelectedTab(
    1. int
    )?,
  15. bool? popScreensOnTapOfSelectedTab,
  16. NavBarDecoration? navBarDecoration,
  17. NavBarEssentials? navBarEssentials,
  18. bool? confineToSafeArea,
  19. ItemAnimationProperties? itemAnimationProperties,
  20. Function? onAnimationComplete,
  21. bool? hideNavigationBar,
  22. bool? isCustomWidget,
  23. EdgeInsets? padding,
})

Implementation

PersistentBottomNavBar copyWith(
        {final int? selectedIndex,
        final double? iconSize,
        final int? previousIndex,
        final Color? backgroundColor,
        final Duration? animationDuration,
        final List<PersistentBottomNavBarItem>? items,
        final ValueChanged<int>? onItemSelected,
        final double? navBarHeight,
        final EdgeInsets? margin,
        final NavBarStyle? navBarStyle,
        final double? horizontalPadding,
        final NeumorphicProperties? neumorphicProperties,
        final Widget? customNavBarWidget,
        final Function(int)? popAllScreensForTheSelectedTab,
        final bool? popScreensOnTapOfSelectedTab,
        final NavBarDecoration? navBarDecoration,
        final NavBarEssentials? navBarEssentials,
        final bool? confineToSafeArea,
        final ItemAnimationProperties? itemAnimationProperties,
        final Function? onAnimationComplete,
        final bool? hideNavigationBar,
        final bool? isCustomWidget,
        final EdgeInsets? padding}) =>
    PersistentBottomNavBar(
        confineToSafeArea: confineToSafeArea ?? this.confineToSafeArea,
        margin: margin ?? this.margin,
        neumorphicProperties:
            neumorphicProperties ?? this.neumorphicProperties,
        navBarStyle: navBarStyle ?? this.navBarStyle,
        hideNavigationBar: hideNavigationBar ?? this.hideNavigationBar,
        customNavBarWidget: customNavBarWidget ?? this.customNavBarWidget,
        onAnimationComplete:
            // ignore: avoid_positional_boolean_parameters
            onAnimationComplete as dynamic Function(bool, bool)? ??
                this.onAnimationComplete,
        navBarEssentials: navBarEssentials ?? this.navBarEssentials,
        isCustomWidget: isCustomWidget ?? this.isCustomWidget,
        navBarDecoration: navBarDecoration ?? this.navBarDecoration);