LayerAnimationProgress class

How far an animation has brought a layer back to rest at one moment.

Annotations

Constructors

LayerAnimationProgress(double value, {double swing = 1, double turn = 0})
Creates a progress of value, tilting a wiggle to swing and turning a spin or a flip by turn.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
swing → double
The side a LayerAnimationType.wiggle tilts to: -1 in the second half of a loop cycle, 1 otherwise.
final
turn → double
How far a LayerAnimationType.spin or LayerAnimationType.flip has the layer turned, in full turns, clockwise for a positive value: from -LayerAnimation.turns to 0 over an in-animation, so it turns into place the same way it turns away over an out-animation, from 0 to LayerAnimation.turns. A loop counts on by LayerAnimation.turns every cycle; whole turns are taken off, as they look the same. 0 for any other type.
final
value → double
1 at rest and 0 fully away (faded out, at the edge, tilted all the way). An elastic or bounce curve can overshoot either end.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override