FlutterGooglePlacesSdkWebPlugin class

Web implementation plugin for flutter google places sdk

Inheritance
  • Object
  • PlatformInterface
  • FlutterGooglePlacesSdkPlatform
  • FlutterGooglePlacesSdkWebPlugin

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.
override
fetchPlace(String placeId, {required List<PlaceField> fields, bool? newSessionToken, String? regionCode}) Future<FetchPlaceResponse>
Fetches the details of a place. Only the requested fields will be returned. If none specified, all fields will be returned.
override
fetchPlacePhoto(PhotoMetadata photoMetadata, {int? maxWidth, int? maxHeight}) Future<FetchPlacePhotoResponse>
Fetches a photo of a place.
override
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.
override
initialize(String apiKey, {Locale? locale, bool? useNewApi}) Future<void>
Initializes Places for the given application context with the given API key. Use useNewApi to enable the Places API (New) in the SDK
override
isInitialized() Future<bool?>
Returns whether or not the internal Places client has been initialized.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchByText(String textQuery, {required List<PlaceField> fields, String? includedType, int? maxResultCount, LatLngBounds? locationBias, LatLngBounds? locationRestriction, double? minRating, bool? openNow, List<int>? priceLevels, TextSearchRankPreference? rankPreference, String? regionCode, bool? strictTypeFiltering}) Future<SearchByTextResponse>
Fetches places based on an ambiguous text query.
inherited
searchNearby({required List<PlaceField> fields, required CircularBounds locationRestriction, List<String>? includedTypes, List<String>? includedPrimaryTypes, List<String>? excludedTypes, List<String>? excludedPrimaryTypes, NearbySearchRankPreference? rankPreference, String? regionCode, int? maxResultCount}) Future<SearchNearbyResponse>
Search for place(s) of interest using a location.
inherited
toString() String
A string representation of this object.
inherited
updateSettings(String apiKey, {Locale? locale, bool? useNewApi}) Future<void>
Updates the settings of the places client with the given API key and locale.
override

Operators

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

Static Methods

registerWith(Registrar registrar) → void
Register the plugin with the web implementation. Called by ?? when ??