copyWith method
NavBarEssentials
copyWith({
- int? selectedIndex,
- int? previousIndex,
- double? iconSize,
- Color? backgroundColor,
- List<
PersistentBottomNavBarItem> ? items, - ValueChanged<
int> ? onItemSelected, - NavBarPadding? padding,
- dynamic popAllScreensForTheSelectedTab()?,
- bool? popScreensOnTapOfSelectedTab,
- ItemAnimationProperties? itemAnimationProperties,
Implementation
NavBarEssentials copyWith({
int? selectedIndex,
int? previousIndex,
double? iconSize,
Color? backgroundColor,
List<PersistentBottomNavBarItem>? items,
ValueChanged<int>? onItemSelected,
double? navBarHeight,
NavBarPadding? padding,
Function(int)? popAllScreensForTheSelectedTab,
bool? popScreensOnTapOfSelectedTab,
ItemAnimationProperties? itemAnimationProperties,
}) {
return NavBarEssentials(
selectedIndex: selectedIndex ?? this.selectedIndex,
previousIndex: previousIndex ?? this.previousIndex,
backgroundColor: backgroundColor ?? this.backgroundColor,
items: items ?? this.items,
onItemSelected: onItemSelected ?? this.onItemSelected,
navBarHeight: navBarHeight ?? this.navBarHeight,
padding: padding ?? this.padding,
popScreensOnTapOfSelectedTab:
popScreensOnTapOfSelectedTab ?? this.popScreensOnTapOfSelectedTab,
itemAnimationProperties:
itemAnimationProperties ?? this.itemAnimationProperties,
);
}