zoom method

Widget zoom({
  1. Duration duration = const Duration(milliseconds: 350),
  2. Duration delay = Duration.zero,
  3. AnimationController? controller,
  4. bool startAnimation = true,
  5. bool loop = false,
  6. double viewPort = 0.1,
  7. double initialPosition = 1,
  8. NextZoomVariant variant = NextZoomVariant.zoomIn,
})

Implementation

Widget zoom(
    {Duration duration = const Duration(milliseconds: 350),
    Duration delay = Duration.zero,
    AnimationController? controller,
    bool startAnimation = true,
    bool loop = false,
    double viewPort = 0.1,
    double initialPosition = 1,
    NextZoomVariant variant = NextZoomVariant.zoomIn}) {
  return NextZoomAnimation(
    child: this,
    duration: duration,
    delay: delay,
    loop: loop,
    viewPort: viewPort,
    controller: controller,
    initialPosition: initialPosition,
    startAnimation: startAnimation,
    variant: variant,
  );
}