SingleAnimationController class

This class allows you to handle multiple animations using a single AnimationController Some parts of your widget may go forward, other reverse, and other may not change: this can be handled using by defining keys through setup and setupValue methods and then you can access controller value from operator[] Once everything is set up you can call animate that checks direction data and may start animations

Constructors

SingleAnimationController.new({Duration? duration, required VoidCallback update, required TickerProvider vsync})

Properties

duration Duration?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

animate({Duration? duration, Curve curve = Curves.linear}) Future<void>
animateThen({Duration? duration, Curve curve = Curves.linear}) Future<void>
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setup({required String key, required AnimationDirection direction()}) → void
setupValue<T>({required String key, required ValueGetter<T> value, required bool forward(T value)}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) double