copyWith method
DisplayModeBarStyle
copyWith({
- Color? backgroundColor,
- Color? selectedIconColor,
- Color? unselectedIconColor,
- Color? selectedBackgroundColor,
- double? iconSize,
- double? borderRadius,
- EdgeInsetsGeometry? padding,
- double? spacing,
- double? elevation,
- Alignment? position,
- Color? tooltipBackgroundColor,
- TextStyle? tooltipTextStyle,
- bool? showTooltip,
Implementation
DisplayModeBarStyle copyWith({
Color? backgroundColor,
Color? selectedIconColor,
Color? unselectedIconColor,
Color? selectedBackgroundColor,
double? iconSize,
double? borderRadius,
EdgeInsetsGeometry? padding,
double? spacing,
double? elevation,
Alignment? position,
Color? tooltipBackgroundColor,
TextStyle? tooltipTextStyle,
bool? showTooltip,
}) {
return DisplayModeBarStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
selectedIconColor: selectedIconColor ?? this.selectedIconColor,
unselectedIconColor: unselectedIconColor ?? this.unselectedIconColor,
selectedBackgroundColor:
selectedBackgroundColor ?? this.selectedBackgroundColor,
iconSize: iconSize ?? this.iconSize,
borderRadius: borderRadius ?? this.borderRadius,
padding: padding ?? this.padding,
spacing: spacing ?? this.spacing,
elevation: elevation ?? this.elevation,
position: position ?? this.position,
tooltipBackgroundColor:
tooltipBackgroundColor ?? this.tooltipBackgroundColor,
tooltipTextStyle: tooltipTextStyle ?? this.tooltipTextStyle,
showTooltip: showTooltip ?? this.showTooltip,
);
}