copyWith method

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

Implementation

ThemeSpec copyWith({
  int? seed,
  ThemeFamily? family,
  int? engineVersion,
  ThemeVariant? variant,
  int? heroId,
  int? seedHueTenths,
  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,
  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,
);