copyWith method
A copy with the given colours replaced.
Implementation
SheenColors copyWith({
Color? background,
Color? surface,
Color? surfaceMuted,
Color? track,
Color? separator,
Color? text,
Color? textSecondary,
Color? textTertiary,
Color? accent,
Color? onAccent,
Color? accentText,
Color? success,
Color? warning,
Color? danger,
Color? rating,
Color? sheet,
}) => SheenColors(
background: background ?? this.background,
surface: surface ?? this.surface,
surfaceMuted: surfaceMuted ?? this.surfaceMuted,
track: track ?? this.track,
separator: separator ?? this.separator,
text: text ?? this.text,
textSecondary: textSecondary ?? this.textSecondary,
textTertiary: textTertiary ?? this.textTertiary,
accent: accent ?? this.accent,
onAccent: onAccent ?? this.onAccent,
accentText: accentText ?? this.accentText,
success: success ?? this.success,
warning: warning ?? this.warning,
danger: danger ?? this.danger,
rating: rating ?? this.rating,
sheet: sheet ?? this.sheet,
);