LinearBorderEdge class

Defines the relative size and alignment of one edge.

A LinearBorder defines a box outline as zero to four edges, each of which is rendered as a single line. The width and color of the lines is defined by LinearBorder.side.

Each line's length is defined by size, a value between 0.0 and 1.0 (the default) which defines the length as a percentage of the length of a box edge.

When size is less than 1.0, the line is aligned within the available space according to alignment, a value between -1.0 and 1.0. The default is 0.0, which means centered, -1.0 means align on the "start" side, and 1.0 means align on the "end" side. The meaning of start and end depend on the current TextDirection, see Directionality.



LinearBorderEdge({double size = 1.0, double alignment = 0.0})
Defines one side of a LinearBorder.


alignment double
A value between -1.0 and 1.0 that defines how edges for which size is less than 1.0 are aligned relative to the corresponding box edge.
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
A value between 0.0 and 1.0 that defines the length of the edge as a percentage of the length of the corresponding box edge. Default is 1.0.


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

lerp(LinearBorderEdge? a, LinearBorderEdge? b, double t) LinearBorderEdge?
Linearly interpolates between two LinearBorders.