leftOutIn static method

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

Animation from left off the screen into the screen.

Implementation

static AnimatedWidget leftOutIn(Widget child, Animation<double> animation) {
  return SlideTransition(
    position: Tween<Offset>(
      begin: const Offset(-1, 0),
      end: Offset.zero,
    ).animate(animation),
    child: child,
  );
}