copyWith method

NavBarEssentials copyWith({
  1. int? selectedIndex,
  2. int? previousIndex,
  3. double? iconSize,
  4. Color? backgroundColor,
  5. List<PersistentBottomNavBarItem>? items,
  6. ValueChanged<int>? onItemSelected,
  7. double? navBarHeight,
  8. NavBarPadding? padding,
  9. dynamic popAllScreensForTheSelectedTab(
    1. int
    )?,
  10. bool? popScreensOnTapOfSelectedTab,
  11. 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,
    );