HorizontalLine class
Holds data for drawing extra horizontal lines.
LineChartWidget draws some HorizontalLine (set by LineChartData.extraLinesData), in below or above of everything, it draws from left to right side of the chart.
Constructors
-
HorizontalLine({required double y, HorizontalLineLabel? label, Color? color, double? strokeWidth, List<
int> ? dashArray, Image? image, SizedPicture? sizedPicture}) -
LineChartWidget draws horizontal lines from left to right side of the chart
in the provided
y
value, and color it usingcolor
. You can define the thickness usingstrokeWidth
Properties
- color → Color
-
Defines color of the line.
finalinherited
-
dashArray
→ List<
int> ? -
Defines dash effect of the line.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- image ↔ Image?
-
Use it for any kind of image, to draw it in left side of the chart.
getter/setter pair
- label → HorizontalLineLabel
-
Draws a text label over the line.
final
-
props
→ List<
Object?> -
Used for equality check, see
EquatableMixin
.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizedPicture ↔ SizedPicture?
-
Use it for vector images, to draw it in left side of the chart.
getter/setter pair
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - strokeWidth → double
-
Defines thickness of the line.
finalinherited
- y → double
-
Draws from left to right of the chart using the y value.
final
Methods
-
copyWith(
{Color? color, double? strokeWidth, List< int> ? dashArray}) → AFlLine -
Copies current AFlLine to a new AFlLine,
and replaces provided values.
inherited
-
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
-
lerp(
HorizontalLine a, HorizontalLine b, double t) → HorizontalLine -
Lerps a HorizontalLine based on
t
value, check Tween.lerp.override