HorizontalLineLabel class

Draws a title on the HorizontalLine

Inheritance

Constructors

HorizontalLineLabel({EdgeInsetsGeometry padding = const EdgeInsets.all(6), TextStyle? style, Alignment alignment = Alignment.topLeft, bool show = false, LabelDirection direction = LabelDirection.horizontal, String labelResolver(HorizontalLine) = HorizontalLineLabel.defaultLineLabelResolver})
Draws a title on the HorizontalLine, align it with alignment over the line, applies padding for spaces, and applies [style for changing color, size, ... of the text. Drawing text will retrieve through labelResolver, you can override it with your custom data. show determines showing label or not. direction determines if the direction of the text should be horizontal or vertical.

Properties

alignment Alignment
Aligns the text on the line.
finalinherited
direction LabelDirection
Determines the direction of the text.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
labelResolver String Function(HorizontalLine)
Resolves a label for showing.
final
padding EdgeInsetsGeometry
Inner spaces around the drawing text.
finalinherited
props List<Object?>
Used for equality check, see EquatableMixin.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show bool
Determines showing label or not.
finalinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
style TextStyle?
Sets style of the drawing text.
finalinherited

Methods

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

Operators

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

Static Methods

defaultLineLabelResolver(HorizontalLine line) String
Returns the HorizontalLine.y as the drawing label.
lerp(HorizontalLineLabel a, HorizontalLineLabel b, double t) HorizontalLineLabel
Lerps a HorizontalLineLabel based on t value, check Tween.lerp.