DirectionalAnimation constructor
const
DirectionalAnimation({
- required Widget child,
- required int delay,
- required DirectionalAnimationDirection direction,
- Curve? curve,
- Key? key,
Constructs a DirectionalAnimation widget.
child is the widget to be animated.
delay is the delay (in milliseconds) before starting the animation.
direction is the direction of the animation.
curve is an optional parameter that specifies
the curve used for the animation.
If not provided, the default curve is Curves.easeIn.
Implementation
const DirectionalAnimation({
required this.child,
required this.delay,
required this.direction,
Curve? curve,
super.key,
}) : _curve = curve ?? Curves.easeIn;