zoomIn method

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

Wraps the widget with a zoom-in animation.

Example:

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

Implementation

Widget zoomIn({
  Duration duration = const Duration(milliseconds: 400),
  Duration delay = Duration.zero,
  Curve curve = Curves.easeOutCubic,
  double beginScale = 0.5,
}) => _ZoomInWidget(
  duration: duration,
  delay: delay,
  curve: curve,
  beginScale: beginScale,
  child: this,
);