copyWith method
DashboardWidgetTheme
copyWith({
- Color? expandedShadowColor,
- double? borderRadius,
- Color? surfaceColor,
- List<
BoxShadow> ? shadows, - TextStyle? valueTextStyle,
- TextStyle? unitTextStyle,
- Color? buttonSurfaceColor,
- Color? buttonNegativeSurfaceColor,
- Color? buttonPositiveSurfaceColor,
- double? buttonBorderRadius,
- double? buttonSize,
- Color? iconColor,
- double? iconSize,
- Color? soundIconColor,
- TextStyle? finishButtonTextStyle,
override
Implementation
@override
DashboardWidgetTheme copyWith({
Color? expandedShadowColor,
double? borderRadius,
Color? surfaceColor,
List<BoxShadow>? shadows,
TextStyle? valueTextStyle,
TextStyle? unitTextStyle,
Color? buttonSurfaceColor,
Color? buttonNegativeSurfaceColor,
Color? buttonPositiveSurfaceColor,
double? buttonBorderRadius,
double? buttonSize,
Color? iconColor,
double? iconSize,
Color? soundIconColor,
TextStyle? menuButtonTextStyle,
TextStyle? menuButtonSubTextStyle,
TextStyle? finishButtonTextStyle,
}) {
return DashboardWidgetTheme(
expandedShadowColor: expandedShadowColor ?? this.expandedShadowColor,
borderRadius: borderRadius ?? this.borderRadius,
surfaceColor: surfaceColor ?? this.surfaceColor,
shadows: shadows ?? this.shadows,
valueTextStyle: valueTextStyle ?? this.valueTextStyle,
unitTextStyle: unitTextStyle ?? this.unitTextStyle,
buttonSurfaceColor: buttonSurfaceColor ?? this.buttonSurfaceColor,
buttonNegativeSurfaceColor:
buttonNegativeSurfaceColor ?? this.buttonNegativeSurfaceColor,
buttonPositiveSurfaceColor:
buttonPositiveSurfaceColor ?? this.buttonPositiveSurfaceColor,
buttonBorderRadius: buttonBorderRadius ?? this.buttonBorderRadius,
buttonSize: buttonSize ?? this.buttonSize,
iconColor: iconColor ?? this.iconColor,
iconSize: iconSize ?? this.iconSize,
menuButtonTextStyle: menuButtonTextStyle ?? this.menuButtonTextStyle,
menuButtonSubTextStyle:
menuButtonSubTextStyle ?? this.menuButtonSubTextStyle,
finishButtonTextStyle:
finishButtonTextStyle ?? this.finishButtonTextStyle,
soundIconColor: soundIconColor ?? this.soundIconColor,
);
}