copyWith method
Creates a copy with overridden values.
Implementation
DebugPanelTheme copyWith({
Color? backgroundColor,
Color? surfaceColor,
Color? accentColor,
Color? textPrimary,
Color? textSecondary,
Color? successColor,
Color? warningColor,
Color? errorColor,
Color? infoColor,
Color? borderColor,
double? borderRadius,
double? defaultPadding,
String? fontFamily,
String? monoFontFamily,
}) {
return DebugPanelTheme(
backgroundColor: backgroundColor ?? this.backgroundColor,
surfaceColor: surfaceColor ?? this.surfaceColor,
accentColor: accentColor ?? this.accentColor,
textPrimary: textPrimary ?? this.textPrimary,
textSecondary: textSecondary ?? this.textSecondary,
successColor: successColor ?? this.successColor,
warningColor: warningColor ?? this.warningColor,
errorColor: errorColor ?? this.errorColor,
infoColor: infoColor ?? this.infoColor,
borderColor: borderColor ?? this.borderColor,
borderRadius: borderRadius ?? this.borderRadius,
defaultPadding: defaultPadding ?? this.defaultPadding,
fontFamily: fontFamily ?? this.fontFamily,
monoFontFamily: monoFontFamily ?? this.monoFontFamily,
);
}