clipBehavior property Null safety

Clip clipBehavior
final

The clip behavior when AnimatedContainer.decoration is not null.

Defaults to Clip.none. Must be Clip.none if decoration is null.

Unlike other properties of AnimatedContainer, changes to this property apply immediately and have no animation.

If a clip is to be applied, the Decoration.getClipPath method for the provided decoration must return a clip path. (This is not supported by all decorations; the default implementation of that method throws an UnsupportedError.)

Implementation

final Clip clipBehavior;