slideTransition static method

dynamic slideTransition(
  1. dynamic animation,
  2. dynamic child
)

Implementation

static slideTransition(animation, child) => SlideTransition(
      position: Tween<Offset>(
        begin: const Offset(1, 0),
        end: Offset.zero,
      ).animate(animation),
      child: child,
    );