onLocationChanged property

void Function(double lat, double lng)? onLocationChanged
final

Called whenever the map centre changes (pan or programmatic move).

Provides the new latitude and longitude of the map centre.

Implementation

final void Function(double lat, double lng)? onLocationChanged;