copyWith method

ThemeSeed copyWith({
  1. int? primary,
  2. int? background,
  3. int? secondary,
  4. int? accent,
  5. int? border,
  6. int? destructive,
  7. int? success,
  8. int? warning,
  9. int? info,
  10. bool? isDark,
  11. bool? accentGlow,
  12. int? glowColor,
})

Create a copy with some fields replaced.

Implementation

ThemeSeed copyWith({
  int? primary,
  int? background,
  int? secondary,
  int? accent,
  int? border,
  int? destructive,
  int? success,
  int? warning,
  int? info,
  bool? isDark,
  bool? accentGlow,
  int? glowColor,
}) {
  return ThemeSeed(
    primary: primary ?? this.primary,
    background: background ?? this.background,
    secondary: secondary ?? this.secondary,
    accent: accent ?? this.accent,
    border: border ?? this.border,
    destructive: destructive ?? this.destructive,
    success: success ?? this.success,
    warning: warning ?? this.warning,
    info: info ?? this.info,
    isDark: isDark ?? this.isDark,
    accentGlow: accentGlow ?? this.accentGlow,
    glowColor: glowColor ?? this.glowColor,
  );
}