PlaceIdsSearchCallback typedef

PlaceIdsSearchCallback = void Function(SearchError? searchError, List<PlaceIdResult>? results, ResponseDetails? responseDetails)

The method will be called on the main thread when a search call has been completed.

  • searchError An error enum indicating what went wrong. It is null for an operation that succeeds.

  • results One PlaceIdResult per input ID, in the same order as the request. It is null in case of an error.

  • responseDetails Additional information provided with the response. It is null in case of an error.

Implementation

typedef PlaceIdsSearchCallback = void Function(SearchError? searchError, List<PlaceIdResult>? results, ResponseDetails? responseDetails);