LineChartDataBar class
The bar data determines the appearances of the line.
Constructors
-
LineChartDataBar({required List<
MacLineChartSpot> spots, required Color color, double strokeWidth = 2, StrokeCap strokeCap = StrokeCap.round, LineChartPoint? point, List<double> ? dashArray}) -
Creates LineChartDataBar.
const
- LineChartDataBar.lerp(LineChartDataBar a, LineChartDataBar b, double t)
-
The lerp for use in animation.
factory
Properties
- color → Color
-
The color of this line.
final
-
dashArray
→ List<
double> ? -
The dash array of this line. Used to represent dotted and dashed lines.
DashArray provides some common dash arrays.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- point → LineChartPoint?
-
The data point of this line.
If null, the data point will not be drawn.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spots
→ List<
MacLineChartSpot> -
The series of the spot.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - strokeCap → StrokeCap
-
The stroke cap of this line.
final
- strokeWidth → double
-
The stroke width of this line.
final
Methods
-
copyWith(
{List< MacLineChartSpot> ? spots, Color? color, double? strokeWidth, StrokeCap? strokeCap, LineChartPoint? point, List<double> ? dashArray}) → LineChartDataBar - Creates a copy of this LineChartDataBar but with the given fields replaced with the new values.
-
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