geocodePosition function

Future<List<Placemark>?> geocodePosition({
  1. double? latitude,
  2. double? longitude,
})

Implementation

Future<List<Placemark>?> geocodePosition({
  double? latitude,
  double? longitude,
}) async {
  if (latitude != null && longitude != null) {
    List<Placemark> placemarks =
        await placemarkFromCoordinates(latitude, longitude);
    return placemarks;
  }

  return null;
}