clipBehavior property
The clipping behavior for the container.
Controls how content is clipped at the container's bounds:
- Clip.none: No clipping (default, best performance)
- Clip.antiAlias: Smooth anti-aliased clipping
- Clip.hardEdge: Sharp clipping without anti-aliasing
Use Clip.antiAlias or Clip.hardEdge when the child extends beyond the container's bounds (e.g., images, overflowing content).
Defaults to Clip.none.
Implementation
final Clip clipBehavior;