animateAngle method

void animateAngle({
  1. required double angle,
  2. EffectController? effectController,
  3. 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);
}