MessageAnimations class
Handles animations for chat message appearance with scale and fade effects.
This class manages the animation lifecycle for individual chat messages, providing smooth entrance animations when messages are displayed.
Example:
final animations = MessageAnimations(this); // 'this' is a TickerProvider
// Animation automatically starts
animations.dispose(); // Don't forget to dispose
Constructors
- MessageAnimations(TickerProvider vsync)
-
Creates message animations with the provided
vsync
ticker provider.
Properties
- controller ↔ AnimationController
-
getter/setter pair
-
fadeAnimation
↔ Animation<
double> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether this animation has been disposed.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaleAnimation
↔ Animation<
double> -
getter/setter pair
Methods
-
dispose(
) → void - Disposes of the animation controller and resources. Should be called when the animation is no longer needed.
-
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