AnimationControllerManager class

A manager deal with AnimationControllers when given percentage has changed.

AnimationControllerManager's behavior can be described as follows: 1.When the given percentage has changed, it will check whether it is increasing or decreasing. 2.Find the nextAliveControllerEntry which its trigger value is closest and bigger than given percentage. This means if we reach the end, this property will be null, also when it comes to start, the property is first controller with trigger value in given list.

Notice: The item's trigger value in given list must be ascending order!

AnimationControllerManager also can notify which TriggerValWithControllerEntry is active, give the ValueNotifier to notifier property, You can listen and use that in other classes.

Inheritance

Constructors

AnimationControllerManager({required List<TriggerValWithControllerEntry> controllers, ValueNotifier<TriggerValWithControllerEntry?>? notifier, int initIndex = 0})

Properties

controllers LinkedList<TriggerValWithControllerEntry>
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
initIndex int
final
nextAliveControllerEntry TriggerValWithControllerEntry?
getter/setter pair
notifier ValueNotifier<TriggerValWithControllerEntry?>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storePointOffset double
Store the percentage last time.
getter/setter pairinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited