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,
    refractiveIndex: refractiveIndex ?? base.refractiveIndex,
    saturation: saturation ?? base.saturation,
    specularSharpness: specularSharpness ?? base.specularSharpness,
  );
}