moveCameraTo method

void moveCameraTo(
  1. int index
)

Moves the camera to focus on a specific zone using index.

index is the zone whose coordinates will be focused on in the map.

Implementation

void moveCameraTo(int index) {
  _moveCameraToZone(zones[index].coordinates);
}