snapTo method

  1. @override
void snapTo(
  1. Vector2 position
)

Instantly moves the camera to the target, bypassing follow. This will replace any previous targets.

Implementation

@override
void snapTo(Vector2 position) {
  super.snapTo(_verifyLimits(position));
}