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 provides padding with full BorderSide.width.
- center provides padding with half BorderSide.width.
- outside provides zero padding, as stroke is drawn entirely outside.
Constructors
- StrokeAlign()
-
const
Values
- inside → const StrokeAlign
-
The border is drawn on the inside of the border path.
StrokeAlign()
- 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.
StrokeAlign()
- outside → const StrokeAlign
-
The border is drawn on the outside of the border path.
StrokeAlign()
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
StrokeAlign> -
A constant List of the values in this enum, in order of their declaration.
[inside, center, outside]