slideInFromLeft method
Wraps the widget with a slide-in animation from the left.
Example:
Text('Hello').slideInFromLeft();
Implementation
Widget slideInFromLeft({
Duration duration = const Duration(milliseconds: 300),
Duration delay = Duration.zero,
Curve curve = Curves.easeOutCubic,
double offset = 1.0,
}) {
return _SlideInWidget(
duration: duration,
delay: delay,
curve: curve,
beginOffset: Offset(-offset, 0),
child: this,
);
}