copyWith method
GlassThemeSettings
copyWith({
- double? visibility,
- Color? glassColor,
- double? thickness,
- double? blur,
- double? frost,
- double? frostOpacity,
- double? frostClamp,
- double? frostWeight,
- double? blurWeight,
- double? chromaticAberration,
- double? lightAngle,
- double? lightIntensity,
- double? ambientStrength,
- double? fresnelStrength,
- double? refractiveIndex,
- double? saturation,
- GlassSpecularSharpness? specularSharpness,
- double? edgeAbsorption,
- double? rimShade,
- double? rimShadeEnds,
- double? rimLight,
- double? bodyShade,
- GlassLensModel? lensModel,
Creates a copy with overridden values.
Implementation
GlassThemeSettings copyWith({
double? visibility,
Color? glassColor,
double? thickness,
double? blur,
double? frost,
double? frostOpacity,
double? frostClamp,
double? frostWeight,
double? blurWeight,
double? chromaticAberration,
double? lightAngle,
double? lightIntensity,
double? ambientStrength,
double? fresnelStrength,
double? refractiveIndex,
double? saturation,
GlassSpecularSharpness? specularSharpness,
double? edgeAbsorption,
double? rimShade,
double? rimShadeEnds,
double? rimLight,
double? bodyShade,
GlassLensModel? lensModel,
}) {
return GlassThemeSettings(
visibility: visibility ?? this.visibility,
glassColor: glassColor ?? this.glassColor,
thickness: thickness ?? this.thickness,
blur: blur ?? this.blur,
frost: frost ?? this.frost,
frostOpacity: frostOpacity ?? this.frostOpacity,
frostClamp: frostClamp ?? this.frostClamp,
frostWeight: frostWeight ?? this.frostWeight,
blurWeight: blurWeight ?? this.blurWeight,
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,
rimShade: rimShade ?? this.rimShade,
rimShadeEnds: rimShadeEnds ?? this.rimShadeEnds,
rimLight: rimLight ?? this.rimLight,
bodyShade: bodyShade ?? this.bodyShade,
lensModel: lensModel ?? this.lensModel,
);
}