rightOutIn static method

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

Animation from right off screen to on screen.

Implementation

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