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:

Inheritance

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

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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]