ClipRect
Overview
Clips to a rectangular area and removes whatever overflows it. For example, use it to hide content that spills outside the area.
Properties
| Property | Description | Values | Default |
|---|---|---|---|
clipper | Sets the rectangular area to clip to directly. Leave it unset, or give it a width or height of 0, and the clip follows the size of the child widget. | Rectangular area | Not set |
clipBehavior | Sets how edges are handled when clipping to the rectangular bounds. | none, hardEdge, antiAlias, antiAliasWithSaveLayer | hardEdge |