BoxConstraintsTweenDescription class final
Description for a BoxConstraintsTween animation that animates between BoxConstraints values.
This class is used for animating constraint properties such as minimum and maximum width and height of widgets.
Example usage:
final boxConstraintsTween = BoxConstraintsTweenDescription(
animatedPropKey: 'constraints',
duration: Duration(milliseconds: 400),
begin: BoxConstraints(minWidth: 100, minHeight: 50),
end: BoxConstraints(minWidth: 200, minHeight: 100),
curve: Curves.easeInOut,
trigger: AnimationTrigger.onTap,
method: AnimationMethod.forward,
reverseOnRepeat: false,
);
- Inheritance
-
- Object
- DuitTweenDescription<
BoxConstraints> - BoxConstraintsTweenDescription
Constructors
- BoxConstraintsTweenDescription({required String animatedPropKey, required Duration duration, required BoxConstraints begin, required BoxConstraints end, required Curve curve, required AnimationTrigger trigger, required AnimationMethod method, required bool reverseOnRepeat, AnimationInterval? interval})
- Creates a new box constraints tween description.
Properties
- animatedPropKey → String
-
The key identifier for the animated property in the UI component.
This key is used to map the animation to the correct property.
finalinherited
- begin → BoxConstraints
-
The starting value for the animation.
finalinherited
- curve → Curve
-
The curve that defines the animation's easing function.
finalinherited
- duration → Duration
-
The duration of the animation.
finalinherited
- end → BoxConstraints
-
The ending value for the animation.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → AnimationInterval?
-
Optional interval configuration for controlling animation timing.
finalinherited
- method → AnimationMethod
-
The method that controls how the animation plays.
finalinherited
- reverseOnRepeat → bool
-
Whether the animation should reverse direction when repeating.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trigger → AnimationTrigger
-
The trigger that initiates the animation.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited