copyWith method

SheenColors copyWith({
  1. Color? background,
  2. Color? surface,
  3. Color? surfaceMuted,
  4. Color? track,
  5. Color? separator,
  6. Color? text,
  7. Color? textSecondary,
  8. Color? textTertiary,
  9. Color? accent,
  10. Color? onAccent,
  11. Color? accentText,
  12. Color? success,
  13. Color? warning,
  14. Color? danger,
  15. Color? rating,
  16. Color? sheet,
})

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,
);