getAddress method
Implementation
Future<Position> getAddress(Prediction p, BuildContext context) {
return service
.geocode(p.placeId!)
.asStream()
.map((event) => Position(
latLng: event,
formattedAddress: p.structuredFormatting?.mainText ?? ""))
.first;
}