PlaceIdsSearchCallback typedef
The method will be called on the main thread when a search call has been completed.
-
searchErrorAn error enum indicating what went wrong. It isnullfor an operation that succeeds. -
resultsOne PlaceIdResult per input ID, in the same order as the request. It isnullin case of an error. -
responseDetailsAdditional information provided with the response. It isnullin case of an error.
Implementation
typedef PlaceIdsSearchCallback = void Function(SearchError? searchError, List<PlaceIdResult>? results, ResponseDetails? responseDetails);