DirectionalAnimation constructor

const DirectionalAnimation({
  1. required Widget child,
  2. required int delay,
  3. required DirectionalAnimationDirection direction,
  4. Curve? curve,
  5. 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;