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,
    frost: frost ?? base.frost,
    frostOpacity: frostOpacity ?? base.frostOpacity,
    frostClamp: frostClamp ?? base.frostClamp,
    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,
    rimShade: rimShade ?? base.rimShade,
    rimShadeEnds: rimShadeEnds ?? base.rimShadeEnds,
    rimLight: rimLight ?? base.rimLight,
    bodyShade: bodyShade ?? base.bodyShade,
    lensModel: lensModel ?? base.lensModel,
    frostWeight: frostWeight ?? base.frostWeight,
    blurWeight: blurWeight ?? base.blurWeight,
    backerColor: base.backerColor,
    platformViewFallbackColor: base.platformViewFallbackColor,
  );
}