copyWith method
PersistentBottomNavBar
copyWith({
- int? selectedIndex,
- double? iconSize,
- int? previousIndex,
- Color? backgroundColor,
- Duration? animationDuration,
- List<
PersistentBottomNavBarItem> ? items, - ValueChanged<
int> ? onItemSelected, - EdgeInsets? margin,
- double? horizontalPadding,
- NeumorphicProperties? neumorphicProperties,
- dynamic popAllScreensForTheSelectedTab()?,
- bool? popScreensOnTapOfSelectedTab,
- bool? confineToSafeArea,
- ItemAnimationProperties? itemAnimationProperties,
- Function? onAnimationComplete,
- bool? isCustomWidget,
- 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);