HorizontalRangeAnnotation class
Defines an annotation region in y (vertical) axis.
Constructors
- HorizontalRangeAnnotation({required double y1, required double y2, Color? color})
-
Annotates a horizontal region from most left to most right point of the chart, and
from
y1
toy2
, and fills the area withcolor
.
Properties
- color → Color
-
Fills the area with this 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}) → 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
Static Methods
-
lerp(
HorizontalRangeAnnotation a, HorizontalRangeAnnotation b, double t) → HorizontalRangeAnnotation -
Lerps a HorizontalRangeAnnotation based on
t
value, check Tween.lerp.