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