animateSlide method

Widget animateSlide({
  1. Key? key,
  2. Offset offset = Offset.zero,
  3. Duration duration = const Duration(milliseconds: 350),
  4. Curve curve = MotionCurves.swiftOut,
})

Wraps a widget in a slide-offset animated wrapper

Implementation

Widget animateSlide({
  Key? key,
  Offset offset = Offset.zero,
  Duration duration = const Duration(milliseconds: 350),
  Curve curve = MotionCurves.swiftOut,
}) {
  return AnimatedSlide(
    key: key,
    offset: offset,
    duration: duration,
    curve: curve,
    child: this,
  );
}