toLatLng method

LatLng? toLatLng({
  1. bool ignoreErrors = false,
})

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;
}