copyWith method

GlassThemeSettings copyWith({
  1. double? visibility,
  2. Color? glassColor,
  3. double? thickness,
  4. double? blur,
  5. double? frost,
  6. double? frostOpacity,
  7. double? frostClamp,
  8. double? frostWeight,
  9. double? blurWeight,
  10. double? chromaticAberration,
  11. double? lightAngle,
  12. double? lightIntensity,
  13. double? ambientStrength,
  14. double? fresnelStrength,
  15. double? refractiveIndex,
  16. double? saturation,
  17. GlassSpecularSharpness? specularSharpness,
  18. double? edgeAbsorption,
  19. double? rimShade,
  20. double? rimShadeEnds,
  21. double? rimLight,
  22. double? bodyShade,
  23. GlassLensModel? lensModel,
  24. double? shadowElevation,
  25. List<BoxShadow>? shadow,
})

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,
  double? shadowElevation,
  List<BoxShadow>? shadow,
}) {
  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,
    shadowElevation: shadowElevation ?? this.shadowElevation,
    shadow: shadow ?? this.shadow,
  );
}