NavigateToCurrentLocation method
void
NavigateToCurrentLocation(
)
override
Implementation
@override
void NavigateToCurrentLocation() {
double lat = Settings?.CurrentLocation?.lat ??
Configuration.Engine.CurrentLocation?.lat ??
0;
double lng = Settings?.CurrentLocation?.lng ??
Configuration.Engine.CurrentLocation?.lng ??
0;
double targetZoom = Settings?.InitialZoom ?? 10;
_controller.fitCamera(
CameraFit.coordinates(
maxZoom: targetZoom,
coordinates: [
LatLng(lat, lng),
LatLng(lat + 0.000001, lng + 0.000001),
],
),
);
}