AnimationRequest class

Represents a request to animate to a specific target value.

This class encapsulates the parameters needed for a single animation step, including the target value, duration, and easing curve.

Overview

Use AnimationRequest with AnimationQueueController to queue multiple animation steps that will be executed sequentially or as replacements.

Example

final request = AnimationRequest(
  1.0,
  Duration(milliseconds: 300),
  Curves.easeOut,
);
controller.push(request);

Constructors

AnimationRequest(double target, Duration duration, Curve curve)
Creates an animation request with the specified parameters.

Properties

curve Curve
The easing curve to apply during the animation.
final
duration Duration
The duration of the animation.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target double
The target value to animate to (typically 0.0 to 1.0).
final

Methods

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