moveToPlayerAnimated method
void
moveToPlayerAnimated({
- Duration? duration,
- VoidCallback? finish,
- double zoom = 1,
- double angle = 0,
- Curve curve = Curves.decelerate,
Implementation
void moveToPlayerAnimated({
Duration? duration,
VoidCallback? finish,
double zoom = 1,
double angle = 0,
Curve curve = Curves.decelerate,
}) {
if (gameRef.player == null) return;
moveToTargetAnimated(
gameRef.player!,
zoom: zoom,
angle: angle,
finish: finish,
duration: duration,
curve: curve,
);
}