copyWith method

ThemeSpec copyWith({
  1. int? seed,
  2. ThemeFamily? family,
  3. int? engineVersion,
  4. ThemeVariant? variant,
  5. int? heroId,
  6. int? seedHueTenths,
  7. ThemeIntent? intent,
  8. bool? intentCentred,
  9. ThemeBrightness? brightness,
  10. bool? accessible,
  11. Palette? palette,
  12. KeyShapeSpec? keyShape,
  13. KeyStyleSpec? keyStyle,
  14. TypeSpec? type,
  15. BackgroundSpec? background,
  16. MotionSpec? motion,
  17. EffectsSpec? effects,
  18. SoundPackId? sound,
  19. String? name,
  20. OperatorCue? nonColourOperatorCue,
})

Implementation

ThemeSpec copyWith({
  int? seed,
  ThemeFamily? family,
  int? engineVersion,
  ThemeVariant? variant,
  int? heroId,
  int? seedHueTenths,
  ThemeIntent? intent,
  bool? intentCentred,
  ThemeBrightness? brightness,
  bool? accessible,
  Palette? palette,
  KeyShapeSpec? keyShape,
  KeyStyleSpec? keyStyle,
  TypeSpec? type,
  BackgroundSpec? background,
  MotionSpec? motion,
  EffectsSpec? effects,
  SoundPackId? sound,
  String? name,
  OperatorCue? nonColourOperatorCue,
}) => ThemeSpec(
  seed: seed ?? this.seed,
  family: family ?? this.family,
  engineVersion: engineVersion ?? this.engineVersion,
  variant: variant ?? this.variant,
  heroId: heroId ?? this.heroId,
  seedHueTenths: seedHueTenths ?? this.seedHueTenths,
  intent: intent ?? this.intent,
  intentCentred: intentCentred ?? this.intentCentred,
  brightness: brightness ?? this.brightness,
  accessible: accessible ?? this.accessible,
  palette: palette ?? this.palette,
  keyShape: keyShape ?? this.keyShape,
  keyStyle: keyStyle ?? this.keyStyle,
  type: type ?? this.type,
  background: background ?? this.background,
  motion: motion ?? this.motion,
  effects: effects ?? this.effects,
  sound: sound ?? this.sound,
  name: name ?? this.name,
  nonColourOperatorCue: nonColourOperatorCue ?? this.nonColourOperatorCue,
);