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({
final int? selectedIndex,
final int? previousIndex,
final double? iconSize,
final Color? backgroundColor,
final List<PersistentBottomNavBarItem>? items,
final ValueChanged<int>? onItemSelected,
final double? navBarHeight,
final NavBarPadding? padding,
final Function(int)? popAllScreensForTheSelectedTab,
final bool? popScreensOnTapOfSelectedTab,
final ItemAnimationProperties? itemAnimationProperties,
}) =>
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,
);