copyWith method

Palette copyWith({
  1. int? background,
  2. int? surface,
  3. int? displayText,
  4. int? previewText,
  5. int? error,
  6. int? caret,
  7. int? focusRing,
  8. int? accent,
  9. KeyColors? digit,
  10. KeyColors? operator,
  11. KeyColors? equals,
  12. KeyColors? function,
  13. int? shadow,
  14. int? highlight,
  15. int? seedColor,
  16. int? lcdGhost,
})

Implementation

Palette copyWith({
  int? background,
  int? surface,
  int? displayText,
  int? previewText,
  int? error,
  int? caret,
  int? focusRing,
  int? accent,
  KeyColors? digit,
  KeyColors? operator,
  KeyColors? equals,
  KeyColors? function,
  int? shadow,
  int? highlight,
  int? seedColor,
  int? lcdGhost,
}) => Palette(
  background: background ?? this.background,
  surface: surface ?? this.surface,
  displayText: displayText ?? this.displayText,
  previewText: previewText ?? this.previewText,
  error: error ?? this.error,
  caret: caret ?? this.caret,
  focusRing: focusRing ?? this.focusRing,
  accent: accent ?? this.accent,
  digit: digit ?? this.digit,
  operator: operator ?? this.operator,
  equals: equals ?? this.equals,
  function: function ?? this.function,
  shadow: shadow ?? this.shadow,
  highlight: highlight ?? this.highlight,
  seedColor: seedColor ?? this.seedColor,
  lcdGhost: lcdGhost ?? this.lcdGhost,
);