VerticalLineLabel class
Draws a title on the VerticalLine
- Inheritance
-
- Object
- FlLineLabel
- VerticalLineLabel
Constructors
- VerticalLineLabel({EdgeInsetsGeometry padding = const EdgeInsets.all(6), TextStyle? style = const TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 14), Alignment alignment = Alignment.bottomRight, bool show = false, LabelDirection direction = LabelDirection.horizontal, String labelResolver(VerticalLine) = VerticalLineLabel.defaultLineLabelResolver})
- Draws a title on the VerticalLine, 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(VerticalLine)
-
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(
VerticalLine line) → String - Returns the VerticalLine.x as the drawing label.
-
lerp(
VerticalLineLabel a, VerticalLineLabel b, double t) → VerticalLineLabel -
Lerps a VerticalLineLabel based on
t
value, check Tween.lerp.