SlideInAnimation constructor

const SlideInAnimation({
  1. Key? key,
  2. required Widget child,
  3. Direction direction = Direction.left,
  4. Offset? offset,
  5. Duration duration = const Duration(milliseconds: 500),
})

Custom offset for the slide animation (optional). Constructor for the SlideInAnimation widget.

Implementation

/// Constructor for the SlideInAnimation widget.
const SlideInAnimation({
  Key? key,
  required this.child,
  this.direction = Direction.left,

  /// Default direction is from the left.
  this.offset,
  this.duration = const Duration(milliseconds: 500),

  /// Default animation duration.
}) : super(key: key);