clipBehavior property

Clip clipBehavior
final

Controls whether the content is clipped during the cross-fade transition.

During the size transition between firstChild and secondChild, the content is clipped by default to prevent it from overflowing the bounding box of the animating widget.

Set this to Clip.none to disable clipping entirely. This can be useful for widgets with shadows or visual effects that extend beyond their bounds.

Defaults to Clip.hardEdge.

Implementation

final Clip clipBehavior;