StrokeAlign enum Null safety
The relative position of the stroke on a BorderSide in a Border or OutlinedBorder. When set to inside, the stroke is drawn completely inside the widget. For center and outside, 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 BorderSide.width as additional padding:
- inside → const StrokeAlign
The border is drawn on the inside of the border path.
- center → const StrokeAlign
The border is drawn on the center of the border path, with half of the BorderSide.width on the inside, and the other half on the outside of the path.
- outside → const StrokeAlign
The border is drawn on the outside of the border path.