shape property
The shape this border represents.
The polygon is assumed to fit inside the (0, 0) -> (1, 1) unit square, as the border scales it to the bounding rectangle of the widget it is applied to. Shapes from MaterialShapes already satisfy this. For an arbitrary polygon, use RoundedPolygon.normalized.
Implementation
final RoundedPolygon shape;