VerticalLineLabel class
Draws a title on the VerticalLine
- Inheritance
-
- Object
- FlLineLabel
- VerticalLineLabel
Constructors
- VerticalLineLabel({EdgeInsets? padding, TextStyle? style, Alignment? alignment, bool? show, String labelResolver(VerticalLine)?})
-
Draws a title on the VerticalLine, align it with
alignment
over the line, appliespadding
for spaces, and applies [style for changing color, size, ... of the text. Drawing text will retrieve throughlabelResolver
, you can override it with your custom data.show
determines showing label or not.
Properties
- alignment → Alignment
-
Aligns the text on the line.
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.