leftInOut static method

AnimatedWidget leftInOut(
  1. Widget child,
  2. Animation<double> animation
)

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