PlacesAutocompleteResponse class

Constructors

PlacesAutocompleteResponse({required List<PlaceAutocompletePrediction> predictions, required ResponseStatus status, String? errorMessage, List<String>? infoMessages})
const
PlacesAutocompleteResponse.fromError(String error)
factory
PlacesAutocompleteResponse.fromMap(Map<String, dynamic> map)
factory

Properties

errorMessage String?
When the service returns a status code other than OK<, there may be an additional error_message field within the response object. This field contains more detailed information about thereasons behind the given status code. This field is not always returned, and its content is subject to change.
final
hashCode int
The hash code for this object.
no setterinherited
infoMessages List<String>?
When the service returns additional information about the request specification, there may be an additional info_messages field within the response object. This field is only returned for successful requests. It may not always be returned, and its content is subject to change.
final
isSuccess bool
no setter
predictions List<PlaceAutocompletePrediction>
Contains an array of predictions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ResponseStatus
Contains the status of the request, and may contain debugging information to help you track down why the request failed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited