moveToPlayerAnimated method

void moveToPlayerAnimated({
  1. EffectController? effectController,
  2. dynamic onComplete()?,
  3. double? zoom,
  4. double? angle,
})

Implementation

void moveToPlayerAnimated({
  EffectController? effectController,
  Function()? onComplete,
  double? zoom,
  double? angle,
}) {
  gameRef.player.let((i) {
    moveToTargetAnimated(
      target: i,
      effectController: effectController,
      zoom: zoom,
      angle: angle,
      onComplete: onComplete,
    );
  });
}