toLatLng method
Convert this GeoPoint to a LatLng
object
Implementation
LatLng? toLatLng({bool ignoreErrors = false}) {
LatLng? latLng;
try {
latLng = LatLng(latitude, longitude);
} catch (e) {
if (!ignoreErrors) {
rethrow;
}
}
return latLng;
}