copyWith method

NavbarDecoration copyWith({
  1. BottomNavigationBarType? navbarType,
  2. Color? backgroundColor,
  3. BorderRadius? borderRadius,
  4. bool? isExtended,
  5. Color? unselectedItemColor,
  6. double? elevation,
  7. double? height,
  8. double? minWidth,
  9. double? minExtendedWidth,
  10. Color? unselectedIconColor,
  11. bool? showUnselectedLabels,
  12. Color? unselectedLabelColor,
  13. bool? showSelectedLabels,
  14. bool? enableFeedback,
  15. Color? indicatorColor,
  16. ShapeBorder? indicatorShape,
  17. Color? selectedIconColor,
  18. EdgeInsetsGeometry? margin,
  19. NavigationDestinationLabelBehavior? labelBehavior,
  20. TextStyle? selectedLabelTextStyle,
  21. TextStyle? unselectedLabelTextStyle,
  22. IconThemeData? selectedIconTheme,
  23. IconThemeData? unselectedIconTheme,
})

Implementation

NavbarDecoration copyWith({
  BottomNavigationBarType? navbarType,
  Color? backgroundColor,
  BorderRadius? borderRadius,
  bool? isExtended,
  Color? unselectedItemColor,
  double? elevation,
  double? height,
  double? minWidth,
  double? minExtendedWidth,
  Color? unselectedIconColor,
  bool? showUnselectedLabels,
  Color? unselectedLabelColor,
  bool? showSelectedLabels,
  bool? enableFeedback,
  Color? indicatorColor,
  ShapeBorder? indicatorShape,
  Color? selectedIconColor,
  EdgeInsetsGeometry? margin,
  NavigationDestinationLabelBehavior? labelBehavior,
  TextStyle? selectedLabelTextStyle,
  TextStyle? unselectedLabelTextStyle,
  IconThemeData? selectedIconTheme,
  IconThemeData? unselectedIconTheme,
}) =>
    NavbarDecoration(
      navbarType: navbarType ?? this.navbarType,
      height: height ?? this.height,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      borderRadius: borderRadius ?? this.borderRadius,
      isExtended: isExtended ?? this.isExtended,
      margin: margin ?? this.margin,
      minExtendedWidth: minExtendedWidth ?? this.minExtendedWidth,
      minWidth: minWidth ?? this.minWidth,
      unselectedItemColor: unselectedItemColor ?? this.unselectedItemColor,
      elevation: elevation ?? this.elevation,
      unselectedIconColor: unselectedIconColor ?? this.unselectedIconColor,
      selectedIconColor: selectedIconColor ?? this.selectedIconColor,
      showUnselectedLabels: showUnselectedLabels ?? this.showUnselectedLabels,
      unselectedLabelColor: unselectedLabelColor ?? this.unselectedLabelColor,
      showSelectedLabels: showSelectedLabels ?? this.showSelectedLabels,
      enableFeedback: enableFeedback ?? this.enableFeedback,
      indicatorColor: indicatorColor ?? this.indicatorColor,
      labelBehavior: labelBehavior ?? this.labelBehavior,
      indicatorShape: indicatorShape ?? this.indicatorShape,
      selectedLabelTextStyle:
          selectedLabelTextStyle ?? this.selectedLabelTextStyle,
      unselectedLabelTextStyle:
          unselectedLabelTextStyle ?? this.unselectedLabelTextStyle,
      selectedIconTheme: selectedIconTheme ?? this.selectedIconTheme,
      unselectedIconTheme: unselectedIconTheme ?? this.unselectedIconTheme,
    );