FlutterGooglePlacesSdkPlatform class abstract

A PlatformInterface for flutter google places sdk

Inheritance
  • Object
  • PlatformInterface
  • FlutterGooglePlacesSdkPlatform
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deinitialize() Future<void>
This puts Places into its uninitialized state.
fetchPlace(String placeId, {required List<PlaceField> fields, bool? newSessionToken}) Future<FetchPlaceResponse>
Fetches the details of a place. Only the requested fields will be returned. If none specified, all fields will be returned.
fetchPlacePhoto(PhotoMetadata photoMetadata, {int? maxWidth, int? maxHeight}) Future<FetchPlacePhotoResponse>
Fetches a photo of a place.
findAutocompletePredictions(String query, {List<String>? countries, List<String> placeTypesFilter = const [], bool? newSessionToken, LatLng? origin, LatLngBounds? locationBias, LatLngBounds? locationRestriction}) Future<FindAutocompletePredictionsResponse>
Fetches autocomplete predictions based on a query.
initialize(String apiKey, {Locale? locale}) Future<void>
Initializes Places for the given application context with the given API key.
isInitialized() Future<bool?>
Returns whether or not the internal Places client has been initialized.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateSettings(String apiKey, {Locale? locale}) Future<void>
Updates the settings of the places client with the given API key and locale.

Operators

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

Static Properties

instance FlutterGooglePlacesSdkPlatform
Singleton instance to the platform
getter/setter pair

Constants

ASSET_POWERED_BY_GOOGLE_ON_NON_WHITE → const AssetImage
"Powered by google" image that should be used when background is not white
ASSET_POWERED_BY_GOOGLE_ON_WHITE → const AssetImage
"Powered by google" image that should be used when background is white