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:

Inheritance

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. [...]
read / write, inherited-getter, override-setter
beginAngle double
The beginning of the arc's sweep in radians, measured from the positive x axis. Positive angles turn clockwise. [...]
read-only
center Offset
The center of the circular arc, null if begin and end are horizontally or vertically aligned, or if either is null.
read-only
end Offset
The value this variable has at the end of the animation. [...]
read / write, inherited-getter, override-setter
endAngle double
The end of the arc's sweep in radians, measured from the positive x axis. Positive angles turn clockwise. [...]
read-only
radius double
The radius of the circular arc, null if begin and end are horizontally or vertically aligned, or if either is null.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

lerp(double t) Offset
Returns the value this variable has at the given animation clock value. [...]
override
toString() String
Returns a string representation of this object.
override
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
transform(double t) Offset
Returns the interpolated value for the current value of the given animation. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited