copyWith method
LumenStyle
copyWith({
- LumenShadowKind? shadow,
- double? shadowStrength,
- bool? gradients,
- double? surfaceOpacity,
- double? blurSigma,
- double? radiusScale,
- double? borderScale,
- double? borderOpacity,
- LumenBackgroundKind? background,
- bool? orbs,
Returns a new style preserving unspecified tokens.
Implementation
LumenStyle copyWith({
LumenShadowKind? shadow,
double? shadowStrength,
bool? gradients,
double? surfaceOpacity,
double? blurSigma,
double? radiusScale,
double? borderScale,
double? borderOpacity,
LumenBackgroundKind? background,
bool? orbs,
}) => LumenStyle(
shadow: shadow ?? this.shadow,
shadowStrength: shadowStrength ?? this.shadowStrength,
gradients: gradients ?? this.gradients,
surfaceOpacity: surfaceOpacity ?? this.surfaceOpacity,
blurSigma: blurSigma ?? this.blurSigma,
radiusScale: radiusScale ?? this.radiusScale,
borderScale: borderScale ?? this.borderScale,
borderOpacity: borderOpacity ?? this.borderOpacity,
background: background ?? this.background,
orbs: orbs ?? this.orbs,
);