offset property

double? offset
final

The relative position of the stroke on a WxBorderSide in an OutlinedBorder or Border.

Values typically range from -1.0 (alignInside, inside border, default) to 1.0 (alignOutside, outside border), without any bound constraints (e.g., a value of -2.0 is not typical, but allowed). A value of 0 (alignCenter) will center the border on the edge of the widget.

When set to alignInside, the stroke is drawn completely inside the widget. For alignCenter and alignOutside, a property such as Container.clipBehavior can be used in an outside widget to clip it. If Container.decoration has a border, the container may incorporate width as additional padding:

This property is not honored by toPaint (because the Paint object cannot represent it); it is intended that classes that use WxBorderSide objects implement this property when painting borders by suitably inflating or deflating their regions.

Implementation

final double? offset;