leftInOut static method
Animation from on screen to left off screen.
Implementation
static AnimatedWidget leftInOut(Widget child, Animation<double> animation) {
return SlideTransition(
position: Tween<Offset>(
begin: Offset.zero,
end: const Offset(-1, 0),
).animate(animation),
child: child,
);
}