copyWith method
NavbarDecoration
copyWith({
- 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,
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,
);