HorizontalRangeAnnotation class

Defines an annotation region in y (vertical) axis.

Constructors

HorizontalRangeAnnotation({required double y1, required double y2, Color? color, Gradient? gradient})
Annotates a horizontal region from most left to most right point of the chart, and from y1 to y2, and fills the area with color or gradient.

Properties

color Color?
If provided, this HorizontalRangeAnnotation draws with this color Otherwise we use gradient to draw the background. It draws with gradient if you provide both color and gradient. If none is provided, it draws with a white color.
final
gradient Gradient?
If provided, this HorizontalRangeAnnotation draws with this gradient Otherwise we use color to draw the background. It draws with gradient if you provide both color and gradient. If none is provided, it draws with a white color.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
Used for equality check, see EquatableMixin.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
y1 double
Determines starting point in vertical (y) axis.
final
y2 double
Determines ending point in vertical (y) axis.
final

Methods

copyWith({double? y1, double? y2, Color? color, Gradient? gradient}) HorizontalRangeAnnotation
Copies current HorizontalRangeAnnotation to a new HorizontalRangeAnnotation, and replaces provided 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