copyWith method
GlassThemeSettings
copyWith({
- double? visibility,
- Color? glassColor,
- double? thickness,
- double? blur,
- double? chromaticAberration,
- double? lightAngle,
- double? lightIntensity,
- double? ambientStrength,
- double? fresnelStrength,
- double? refractiveIndex,
- double? saturation,
- GlassSpecularSharpness? specularSharpness,
- double? edgeAbsorption,
Creates a copy with overridden values.
Implementation
GlassThemeSettings copyWith({
double? visibility,
Color? glassColor,
double? thickness,
double? blur,
double? chromaticAberration,
double? lightAngle,
double? lightIntensity,
double? ambientStrength,
double? fresnelStrength,
double? refractiveIndex,
double? saturation,
GlassSpecularSharpness? specularSharpness,
double? edgeAbsorption,
}) {
return GlassThemeSettings(
visibility: visibility ?? this.visibility,
glassColor: glassColor ?? this.glassColor,
thickness: thickness ?? this.thickness,
blur: blur ?? this.blur,
chromaticAberration: chromaticAberration ?? this.chromaticAberration,
lightAngle: lightAngle ?? this.lightAngle,
lightIntensity: lightIntensity ?? this.lightIntensity,
ambientStrength: ambientStrength ?? this.ambientStrength,
fresnelStrength: fresnelStrength ?? this.fresnelStrength,
refractiveIndex: refractiveIndex ?? this.refractiveIndex,
saturation: saturation ?? this.saturation,
specularSharpness: specularSharpness ?? this.specularSharpness,
edgeAbsorption: edgeAbsorption ?? this.edgeAbsorption,
);
}