clipPath property

String? clipPath
final

The node cut to a path, as CSS clip-path: path(…) and Flutter's ClipPath: SVG path data in clipViewBox's units, mapped onto the box by clipFit as a customPaint's view box is. With neither, the box's unit square stretched over it (0 to 1 across and down, whatever its size): a header's wave that fits every width. The node's fills and children are cut to it, its border is drawn along it (inside) and its shadow takes its shape; a pointer outside it passes through. Null: the node's own shape (radius, shape), cut by clipCuts when it has any.

Implementation

final String? clipPath;