CachedTransitionController<T extends CachedTransitionState> class
Manages a collection of transition states and controls their animations.
Used by CachedTransition widget.
Constructors
- CachedTransitionController({required CachedTransitionContext context})
Properties
- context → CachedTransitionContext
-
Provides shared animation config and vsync for state creation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
states
→ Map<
Key, T> -
Stores transition states mapped by widget keys.
final
Methods
-
attach(
Widget widget) → void - Attaches a new widget by creating its transition state and triggering animation.
-
createState(
Widget widget) → T - Creates a new transition state instance for the given widget.
-
dispose(
) → void -
findState(
Key key) → T? - Returns the state associated with the given key, or null if not found.
-
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