animateZoom method
void
animateZoom({
- required Vector2 zoom,
- EffectController? effectController,
- dynamic onComplete()?,
Implementation
void animateZoom({
required Vector2 zoom,
EffectController? effectController,
Function()? onComplete,
}) {
final zoomEffect = ScaleEffect.to(
zoom,
effectController ?? EffectController(duration: 1),
onComplete: onComplete,
);
zoomEffect.removeOnFinish = true;
viewfinder.add(zoomEffect);
}