animateSlide method
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,
);
}