VerticalRangeAnnotation class
Defines an annotation region in x (horizontal) axis.
Constructors
- VerticalRangeAnnotation({required double x1, required double x2, Color? color, Gradient? gradient})
-
Annotates a vertical region from most bottom to most top point of the chart, and
from
x1
tox2
, and fills the area withcolor
orgradient
.
Properties
- color → Color?
-
If provided, this VerticalRangeAnnotation 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 VerticalRangeAnnotation 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 - x1 → double
-
Determines starting point in horizontal (x) axis.
final
- x2 → double
-
Determines ending point in horizontal (x) axis.
final
Methods
-
copyWith(
{double? x1, double? x2, Color? color, Gradient? gradient}) → VerticalRangeAnnotation - Copies current VerticalRangeAnnotation to a new VerticalRangeAnnotation, 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(
VerticalRangeAnnotation a, VerticalRangeAnnotation b, double t) → VerticalRangeAnnotation -
Lerps a VerticalRangeAnnotation based on
t
value, check Tween.lerp.