animateAngle method
void
animateAngle({
- required double angle,
- EffectController? effectController,
- dynamic onComplete()?,
Implementation
void animateAngle({
required double angle,
EffectController? effectController,
Function()? onComplete,
}) {
final rotateEffect = RotateEffect.to(
angle,
effectController ?? EffectController(duration: 1),
onComplete: onComplete,
);
rotateEffect.removeOnFinish = true;
viewfinder.add(rotateEffect);
}