getDetailsByPlaceId method

Future<PlacesDetailsResponse> getDetailsByPlaceId(
  1. String placeId, {
  2. String? sessionToken,
  3. List<String> fields = const [],
  4. String? language,
  5. String? region,
})

Implementation

Future<PlacesDetailsResponse> getDetailsByPlaceId(
  String placeId, {
  String? sessionToken,
  List<String> fields = const [],
  String? language,
  String? region,
}) async {
  final url = buildDetailsUrl(
    placeId: placeId,
    sessionToken: sessionToken,
    fields: fields,
    language: language,
    region: region,
  );
  return _decodeDetailsResponse(await doGet(url, headers: apiHeaders));
}