EzAnimation class
A class to make animations easier and more accessible to the Flutter audience Listenable is extended for easy rebuilds when value changes
- Inheritance
-
- Object
- Listenable
- EzAnimation
Constructors
- EzAnimation(dynamic begin, dynamic end, Duration duration, {Curve curve = Curves.linear, Curve reverseCurve = Curves.linear, BuildContext? context, TickerProvider? vsync})
-
EzAnimation.sequence(List<
SequenceItem> sequence, Duration duration, {Curve curve = Curves.linear, Curve reverseCurve = Curves.linear, BuildContext? context, TickerProvider? vsync}) - Creates an Animation from the given sequence.
-
EzAnimation.tween(Tween<
Object?> tween, Duration duration, {Curve curve = Curves.linear, Curve reverseCurve = Curves.linear, BuildContext? context, TickerProvider? vsync}) - Uses the given Tween to create a sequence This is helpful to use things like ColorTween
- EzAnimation.tweenSequence(TweenSequence sequence, Duration duration, {Curve curve = Curves.linear, Curve reverseCurve = Curves.linear, BuildContext? context, TickerProvider? vsync})
- Creates an Animation from the given TweenSequence /// This is helpful to use things like ColorTween
Properties
- begin ↔ dynamic
-
Begin value for Tween that creates the animation
getter/setter pair
- context → BuildContext?
-
A handle to the tree to listen for navigation
final
- curve → Curve
-
Curve for when the animation goes ahead
final
- duration → Duration
-
Duration to pass to the AnimationController
final
- end ↔ dynamic
-
End value for Tween that creates the animation
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
What to do when the current page is navigated away from
final
- progress → dynamic
-
Gets current progress of animation
no setter
- reverseCurve → Curve
-
Curve when the animation goes back
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → dynamic
-
Gets current value of animation
no setter
- vsync → TickerProvider?
-
final
Methods
-
addListener(
VoidCallback listener) → void -
Adds a listener to the animation
override
-
addStatusListener(
dynamic listener) → void - Adds an animation listener to the result animation
-
dispose(
) → void - Disposes ticker and controller
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void -
Removes listener from the animation
override
-
removeStatusListener(
dynamic listener) → void - Removes the animation listener to the result animation
-
repeat(
{double? min, double? max, bool rev = false, Duration? period}) → void - Repeats animation
-
reset(
) → void - Reverses animation
-
reverse(
{double? from}) → void - Reverses animation
-
start(
{double? from}) → void - Starts an animation from a value
-
stop(
) → void - Ends animation
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited