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 toswingand turning a spin or a flip byturn.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:
-1in the second half of a loop cycle,1otherwise.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 to0over an in-animation, so it turns into place the same way it turns away over an out-animation, from0to LayerAnimation.turns. A loop counts on by LayerAnimation.turns every cycle; whole turns are taken off, as they look the same.0for any other type.final - value → double
-
1at rest and0fully 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