copyWith method
ColorSeed
copyWith({
- Color? primary,
- Color? secondary,
- Color? accent,
- Color? green,
- Color? yellow,
- Color? red,
- Color? baseTextColor,
- Color? placeholderColor,
- Color? mutedColor,
- Color? subtitleColor,
- Color? selectedItemColor,
- Color? selectedTextBackgroundColor,
- Color? selectedTextColor,
- Color? selectedItemBackgroundColor,
- Color? backgroundColor,
- Color? errorColor,
- Color? successColor,
- Color? warningColor,
- Color? infoColor,
- Color? errorWeakColor,
- Color? successWeakColor,
- Color? warningWeakColor,
- Color? infoWeakColor,
- Color? surfaceVariantColor,
- Color? surfaceMutedColor,
- Color? focusBorderColor,
- Color? hoverColor,
- Color? disabledBackgroundColor,
- Color? disabledColor,
Implementation
ColorSeed copyWith({
Color? primary,
Color? secondary,
Color? accent,
Color? green,
Color? yellow,
Color? red,
Color? baseTextColor,
Color? placeholderColor,
Color? mutedColor,
Color? subtitleColor,
Color? selectedItemColor,
Color? selectedTextBackgroundColor,
Color? selectedTextColor,
Color? selectedItemBackgroundColor,
Color? backgroundColor,
Color? errorColor,
Color? successColor,
Color? warningColor,
Color? infoColor,
Color? errorWeakColor,
Color? successWeakColor,
Color? warningWeakColor,
Color? infoWeakColor,
Color? surfaceVariantColor,
Color? surfaceMutedColor,
Color? focusBorderColor,
Color? hoverColor,
Color? disabledBackgroundColor,
Color? disabledColor,
}) {
return ColorSeed(
primary: primary ?? this.primary,
secondary: secondary ?? this.secondary,
accent: accent ?? this.accent,
green: green ?? this.green,
yellow: yellow ?? this.yellow,
red: red ?? this.red,
baseTextColor: baseTextColor ?? this.baseTextColor,
placeholderColor: placeholderColor ?? this.placeholderColor,
mutedColor: mutedColor ?? this.mutedColor,
subtitleColor: subtitleColor ?? this.subtitleColor,
selectedItemColor: selectedItemColor ?? this.selectedItemColor,
selectedTextBackgroundColor:
selectedTextBackgroundColor ?? this.selectedTextBackgroundColor,
selectedTextColor: selectedTextColor ?? this.selectedTextColor,
selectedItemBackgroundColor:
selectedItemBackgroundColor ?? this.selectedItemBackgroundColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
errorColor: errorColor ?? this.errorColor,
successColor: successColor ?? this.successColor,
warningColor: warningColor ?? this.warningColor,
infoColor: infoColor ?? this.infoColor,
errorWeakColor: errorWeakColor ?? this.errorWeakColor,
successWeakColor: successWeakColor ?? this.successWeakColor,
warningWeakColor: warningWeakColor ?? this.warningWeakColor,
infoWeakColor: infoWeakColor ?? this.infoWeakColor,
surfaceVariantColor: surfaceVariantColor ?? this.surfaceVariantColor,
surfaceMutedColor: surfaceMutedColor ?? this.surfaceMutedColor,
focusBorderColor: focusBorderColor ?? this.focusBorderColor,
hoverColor: hoverColor ?? this.hoverColor,
disabledBackgroundColor:
disabledBackgroundColor ?? this.disabledBackgroundColor,
disabledColor: disabledColor ?? this.disabledColor,
);
}