copyWith method

  1. @override
DashboardWidgetTheme copyWith({
  1. Color? expandedShadowColor,
  2. double? borderRadius,
  3. Color? surfaceColor,
  4. List<BoxShadow>? shadows,
  5. TextStyle? valueTextStyle,
  6. TextStyle? unitTextStyle,
  7. Color? buttonSurfaceColor,
  8. Color? buttonNegativeSurfaceColor,
  9. Color? buttonPositiveSurfaceColor,
  10. double? buttonBorderRadius,
  11. double? buttonSize,
  12. Color? iconColor,
  13. double? iconSize,
  14. Color? soundIconColor,
  15. TextStyle? menuButtonTextStyle,
  16. TextStyle? menuButtonSubTextStyle,
  17. 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,
  );
}