slideOutLeft static method

SlideTransition slideOutLeft(
  1. Animation<double> animation,
  2. Widget child
)

使元素向左滑出屏幕

Implementation

static SlideTransition slideOutLeft(
  Animation<double> animation,
  Widget child,
) {
  return SlideTransition(
    position: Tween<Offset>(
      begin: Offset.zero,
      end: const Offset(-1.0, 0.0),
    ).animate(animation),
    child: child,
  );
}