showLocationPopUp function

Future<void> showLocationPopUp(
  1. GeoPoint geoPoint,
  2. String? addr
)

Implementation

Future<void> showLocationPopUp(GeoPoint geoPoint, String? addr) async {
  var googleUrl = getGoogleMapsUrl(geoPoint);
  if (await canLaunchUrl(Uri.parse(googleUrl))) {
    await launchUrl(Uri.parse(googleUrl));
  } else {
    throw 'Could not open the map.';
  }
}