MaterialPointArcTween class
A Tween that interpolates an Offset along a circular arc.
This class specializes the interpolation of Tween<Offset> so that instead of a straight line, the intermediate points follow the arc of a circle in a manner consistent with Material Design principles.
The arc's radius is related to the bounding box that contains the begin and end points. If the bounding box is taller than it is wide, then the center of the circle will be horizontally aligned with the end point. Otherwise the center of the circle will be aligned with the begin point. The arc's sweep is always less than or equal to 90 degrees.
See also:
- Tween, for a discussion on how to use interpolation objects.
- MaterialRectArcTween, which extends this concept to interpolating Rects.
- Inheritance
-
- Object
- Animatable<
Offset> - Tween<
Offset> - MaterialPointArcTween
Constructors
- MaterialPointArcTween({Offset? begin, Offset? end})
- Creates a Tween for animating Offsets along a circular arc.
Properties
- begin ↔ Offset?
-
The value this variable has at the beginning of the animation.
getter/setter pairinherited-getteroverride-setter
- beginAngle → double?
-
The beginning of the arc's sweep in radians, measured from the positive x
axis. Positive angles turn clockwise.
no setter
- center → Offset?
-
The center of the circular arc, null if begin and end are horizontally or
vertically aligned, or if either is null.
no setter
- end ↔ Offset?
-
The value this variable has at the end of the animation.
getter/setter pairinherited-getteroverride-setter
- endAngle → double?
-
The end of the arc's sweep in radians, measured from the positive x axis.
Positive angles turn clockwise.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- radius → double?
-
The radius of the circular arc, null if begin and end are horizontally or
vertically aligned, or if either is null.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
animate(
Animation< double> parent) → Animation<Offset> -
Returns a new Animation that is driven by the given animation but that
takes on values determined by this object.
inherited
-
chain(
Animatable< double> parent) → Animatable<Offset> -
Returns a new Animatable whose value is determined by first evaluating
the given parent and then evaluating this object.
inherited
-
evaluate(
Animation< double> animation) → Offset -
The current value of this object for the given Animation.
inherited
-
lerp(
double t) → Offset -
Returns the value this variable has at the given animation clock value.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
transform(
double t) → Offset -
Returns the interpolated value for the current value of the given animation.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited