copyWith method
BackgroundSpec
copyWith({
- BackgroundKind? kind,
- List<
int> ? colors, - int? angleTenths,
- BackgroundPattern? pattern,
- int? patternColor,
- int? patternScaleCdp,
- int? patternOpacityPermille,
- int? driftPeriodMs,
Implementation
BackgroundSpec copyWith({
BackgroundKind? kind,
List<int>? colors,
int? angleTenths,
BackgroundPattern? pattern,
int? patternColor,
int? patternScaleCdp,
int? patternOpacityPermille,
int? driftPeriodMs,
}) => BackgroundSpec(
kind: kind ?? this.kind,
colors: colors == null ? this.colors : List.unmodifiable(colors),
angleTenths: angleTenths ?? this.angleTenths,
pattern: pattern ?? this.pattern,
patternColor: patternColor ?? this.patternColor,
patternScaleCdp: patternScaleCdp ?? this.patternScaleCdp,
patternOpacityPermille:
patternOpacityPermille ?? this.patternOpacityPermille,
driftPeriodMs: driftPeriodMs ?? this.driftPeriodMs,
);