copyWith method

LumenStyle copyWith({
  1. LumenShadowKind? shadow,
  2. double? shadowStrength,
  3. bool? gradients,
  4. double? surfaceOpacity,
  5. double? blurSigma,
  6. double? radiusScale,
  7. double? borderScale,
  8. double? borderOpacity,
  9. LumenBackgroundKind? background,
  10. 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,
);