clipBehavior property

Clip clipBehavior
final

Whether and how to clip the shadows that render inside the loupe.

Defaults to Clip.none, which is useful if the shadow will not paint where the magnified image appears, or if doing so is intentional (e.g. to blur the edges of the magnified image).

The default configuration of CupertinoMagnifier does not render inside the loupe (the shadows are not offset and use BlurStyle.outer).

Other values (e.g. Clip.hardEdge) are recommended when the shadows have an offset.

See the discussion at shadows.

Implementation

final Clip clipBehavior;