copyWith method

ColorSeed copyWith({
  1. Color? primary,
  2. Color? secondary,
  3. Color? accent,
  4. Color? green,
  5. Color? yellow,
  6. Color? red,
  7. Color? baseTextColor,
  8. Color? placeholderColor,
  9. Color? mutedColor,
  10. Color? subtitleColor,
  11. Color? selectedItemColor,
  12. Color? selectedTextBackgroundColor,
  13. Color? selectedTextColor,
  14. Color? selectedItemBackgroundColor,
  15. Color? backgroundColor,
  16. Color? errorColor,
  17. Color? successColor,
  18. Color? warningColor,
  19. Color? infoColor,
  20. Color? errorWeakColor,
  21. Color? successWeakColor,
  22. Color? warningWeakColor,
  23. Color? infoWeakColor,
  24. Color? surfaceVariantColor,
  25. Color? surfaceMutedColor,
  26. Color? focusBorderColor,
  27. Color? hoverColor,
  28. Color? disabledBackgroundColor,
  29. 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,
  );
}