applyTo method

Returns a new LiquidGlassSettings by applying this override onto base.

Only non-null fields in this override replace the corresponding value in base. Null fields leave base's value untouched.

Implementation

LiquidGlassSettings applyTo(LiquidGlassSettings base) {
  return LiquidGlassSettings(
    visibility: visibility ?? base.visibility,
    glassColor: glassColor ?? base.glassColor,
    thickness: thickness ?? base.thickness,
    blur: blur ?? base.blur,
    chromaticAberration: chromaticAberration ?? base.chromaticAberration,
    lightAngle: lightAngle ?? base.lightAngle,
    lightIntensity: lightIntensity ?? base.lightIntensity,
    ambientStrength: ambientStrength ?? base.ambientStrength,
    ambientRim: base.ambientRim,
    fresnelStrength: fresnelStrength ?? base.fresnelStrength,
    refractiveIndex: refractiveIndex ?? base.refractiveIndex,
    saturation: saturation ?? base.saturation,
    glowIntensity: base.glowIntensity,
    specularSharpness: specularSharpness ?? base.specularSharpness,
    standardOpacityMultiplier: base.standardOpacityMultiplier,
    shadowElevation: base.shadowElevation,
    shadow: base.shadow,
    whitenStrength: base.whitenStrength,
    whitenGated: base.whitenGated,
    edgeAbsorption: edgeAbsorption ?? base.edgeAbsorption,
    backerColor: base.backerColor,
    platformViewFallbackColor: base.platformViewFallbackColor,
  );
}