HorizontalRangeAnnotation class
Defines an annotation region in y (vertical) axis.
Constructors
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
Static Methods
-
lerp(
HorizontalRangeAnnotation a, HorizontalRangeAnnotation b, double t) → HorizontalRangeAnnotation -
Lerps a HorizontalRangeAnnotation based on
t
value, check Tween.lerp.