fetchPlace method
Fetches the details of a place.
Only the requested fields
will be returned. If none specified,
all fields will be returned.
Note that different fields can incur different billing.
For more info about billing: https://developers.google.com/maps/documentation/places/web-service/usage-and-billing
Implementation
@override
Future<FetchPlaceResponse> fetchPlace(
String placeId, {
List<PlaceField>? fields,
bool? newSessionToken,
}) async {
final prom = _getDetails(PlaceDetailsRequest()
..placeId = placeId
..fields = fields?.map(this._mapField).toList(growable: false)
..sessionToken = _lastSessionToken
..language = _language);
final resp = await prom;
return FetchPlaceResponse(resp.place);
}