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(
{int? selectedIndex,
double? iconSize,
int? previousIndex,
Color? backgroundColor,
Duration? animationDuration,
List<PersistentBottomNavBarItem>? items,
ValueChanged<int>? onItemSelected,
double? navBarHeight,
EdgeInsets? margin,
NavBarStyle? navBarStyle,
double? horizontalPadding,
NeumorphicProperties? neumorphicProperties,
Widget Function(NavBarEssentials)? customNavBarWidget,
Function(int)? popAllScreensForTheSelectedTab,
bool? popScreensOnTapOfSelectedTab,
NavBarDecoration? navBarDecoration,
NavBarEssentials? navBarEssentials,
bool? confineToSafeArea,
ItemAnimationProperties? itemAnimationProperties,
Function? onAnimationComplete,
bool? hideNavigationBar,
bool? isCustomWidget,
EdgeInsets? padding}) {
return 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: onAnimationComplete as dynamic Function(bool, bool)? ?? this.onAnimationComplete,
navBarEssentials: navBarEssentials ?? this.navBarEssentials,
isCustomWidget: isCustomWidget ?? this.isCustomWidget,
navBarDecoration: navBarDecoration ?? this.navBarDecoration);
}