copyWith method
NavigationBarThemeData
copyWith({
- double? height,
- Color? backgroundColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- Color? indicatorColor,
- ShapeBorder? indicatorShape,
- WidgetStateProperty<
TextStyle?> ? labelTextStyle, - WidgetStateProperty<
IconThemeData?> ? iconTheme, - NavigationDestinationLabelBehavior? labelBehavior,
- WidgetStateProperty<
Color?> ? overlayColor, - WidgetStateProperty<
Color?> ? destinationOverlayColor, - ShapeBorder? destinationIndicatorShape,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Offset? tooltipOffset,
- EdgeInsetsGeometry? labelPadding,
- TooltipTriggerMode? tooltipTrigger,
- TooltipTriggerMode? tooltipTriggerWhenLabelVisible,
- TooltipTriggerMode? tooltipTriggerWhenLabelHidden,
- BadgeThemeData? badgeThemeData,
override
Creates a copy of this object with the given fields replaced with the new values.
Implementation
@override
NavigationBarThemeData copyWith({
double? height,
Color? backgroundColor,
double? elevation,
Color? shadowColor,
Color? surfaceTintColor,
Color? indicatorColor,
ShapeBorder? indicatorShape,
WidgetStateProperty<TextStyle?>? labelTextStyle,
WidgetStateProperty<IconThemeData?>? iconTheme,
NavigationDestinationLabelBehavior? labelBehavior,
WidgetStateProperty<Color?>? overlayColor,
WidgetStateProperty<Color?>? destinationOverlayColor,
ShapeBorder? destinationIndicatorShape,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
Offset? tooltipOffset,
EdgeInsetsGeometry? labelPadding,
TooltipTriggerMode? tooltipTrigger,
TooltipTriggerMode? tooltipTriggerWhenLabelVisible,
TooltipTriggerMode? tooltipTriggerWhenLabelHidden,
BadgeThemeData? badgeThemeData,
}) {
return NavigationBarThemeData(
height: height ?? this.height,
backgroundColor: backgroundColor ?? this.backgroundColor,
elevation: elevation ?? this.elevation,
shadowColor: shadowColor ?? this.shadowColor,
surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
indicatorColor: indicatorColor ?? this.indicatorColor,
indicatorShape: indicatorShape ?? this.indicatorShape,
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
iconTheme: iconTheme ?? this.iconTheme,
labelBehavior: labelBehavior ?? this.labelBehavior,
overlayColor: overlayColor ?? this.overlayColor,
destinationOverlayColor:
destinationOverlayColor ?? this.destinationOverlayColor,
destinationIndicatorShape:
destinationIndicatorShape ?? this.destinationIndicatorShape,
margin: margin ?? this.margin,
padding: padding ?? this.padding,
tooltipOffset: tooltipOffset ?? this.tooltipOffset,
labelPadding: labelPadding ?? this.labelPadding,
tooltipTrigger: tooltipTrigger ?? this.tooltipTrigger,
tooltipTriggerWhenLabelVisible:
tooltipTriggerWhenLabelVisible ?? this.tooltipTriggerWhenLabelVisible,
tooltipTriggerWhenLabelHidden:
tooltipTriggerWhenLabelHidden ?? this.tooltipTriggerWhenLabelHidden,
badgeThemeData: badgeThemeData ?? this.badgeThemeData,
);
}