copyWith method

GlassThemeSettings copyWith({
  1. double? visibility,
  2. Color? glassColor,
  3. double? thickness,
  4. double? blur,
  5. double? chromaticAberration,
  6. double? lightAngle,
  7. double? lightIntensity,
  8. double? ambientStrength,
  9. double? refractiveIndex,
  10. double? saturation,
  11. GlassSpecularSharpness? specularSharpness,
})

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? refractiveIndex,
  double? saturation,
  GlassSpecularSharpness? specularSharpness,
}) {
  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,
    refractiveIndex: refractiveIndex ?? this.refractiveIndex,
    saturation: saturation ?? this.saturation,
    specularSharpness: specularSharpness ?? this.specularSharpness,
  );
}