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