copyWith method
Creates a copy of this settings object with the given fields replaced with new values.
Implementation
LiquidGlassSettings copyWith({
double? blendPx,
double? refractStrength,
double? distortFalloffPx,
double? distortExponent,
double? blurRadiusPx,
double? specAngle,
double? specStrength,
double? specPower,
double? specWidth,
double? lightbandOffsetPx,
double? lightbandWidthPx,
double? lightbandStrength,
Color? lightbandColor,
}) {
return LiquidGlassSettings(
blendPx: blendPx ?? this.blendPx,
refractStrength: refractStrength ?? this.refractStrength,
distortFalloffPx: distortFalloffPx ?? this.distortFalloffPx,
distortExponent: distortExponent ?? this.distortExponent,
blurRadiusPx: blurRadiusPx ?? this.blurRadiusPx,
specAngle: specAngle ?? this.specAngle,
specStrength: specStrength ?? this.specStrength,
specPower: specPower ?? this.specPower,
specWidth: specWidth ?? this.specWidth,
lightbandOffsetPx: lightbandOffsetPx ?? this.lightbandOffsetPx,
lightbandWidthPx: lightbandWidthPx ?? this.lightbandWidthPx,
lightbandStrength: lightbandStrength ?? this.lightbandStrength,
lightbandColor: lightbandColor ?? this.lightbandColor,
);
}