zoomOut method

Widget zoomOut({
  1. Duration duration = const Duration(milliseconds: 400),
  2. Duration delay = Duration.zero,
  3. Curve curve = Curves.easeInCubic,
  4. double endScale = 0.5,
})

Wraps the widget with a zoom-out animation.

Example:

Image.asset('photo.png').zoomOut();

Implementation

Widget zoomOut({
  Duration duration = const Duration(milliseconds: 400),
  Duration delay = Duration.zero,
  Curve curve = Curves.easeInCubic,
  double endScale = 0.5,
}) => _ZoomOutWidget(
  duration: duration,
  delay: delay,
  curve: curve,
  endScale: endScale,
  child: this,
);