fl_place_autocomplete_platform_interface library

Platform interface for the fl_place_autocomplete plugin.

Classes

AddressComponent
A component of a place's address.
AuthorAttribution
Attribution for a photo or review author.
CircularArea
A circular bias area.
FlPlaceAutocompletePlatform
Platform interface for fl_place_autocomplete.
LatLng
A geographic coordinate.
LatLngBounds
A rectangle defined by its south-west and north-east corners.
MatchedRange
A half-open [start, end) range of UTF-16 code units.
OpeningHours
Opening hours of a place.
OpeningPeriod
An opening period.
PhotoData
Photo content: bytes or a URI, depending on the platform.
PigeonPlacesPlatform
Shared implementation used by the Android and iOS packages.
Place
Details of a place; every field is null unless requested and available.
PlaceArea
An area used to bias autocomplete results.
PlacePhotoRef
Reference to a photo; pass to fetchPhoto.
PlacePrediction
An autocomplete prediction.
PlaceReview
A user review of a place.
PlaceSession
A single-use autocomplete session. Created in Dart; native sides lazily map id to their real session token.
PredictionOptions
Options for an autocomplete request.
RectangularArea
A rectangular bias area.
TimePoint
A day/time within a week; day 0 is Sunday.

Enums

BusinessStatus
Operational status of a business.
PlaceAutocompleteErrorCode
Error codes shared by all platforms.
PlaceField
Fields that can be requested from fetchPlace.
PlacesApiPlatform
Platforms that can have their own --dart-define API key.
PriceLevel
Price level of a place.

Functions

genericPlacesApiKey({String generic = _genericKey}) → String?
The generic GOOGLE_PLACES_API_KEY define (trimmed), or null when blank. Used on targets without a platform-specific define.
mapPlatformException(PlatformException e) → PlaceAutocompleteException
Maps a native error to a PlaceAutocompleteException.
resolvePlacesApiKey({required PlacesApiPlatform platform, String generic = _genericKey, String? android = _androidKey, String? ios = _iosKey, String? web = _webKey}) → String?
Resolves the API key passed with --dart-define for platform.

Exceptions / Errors

PlaceAutocompleteException
Thrown for Places failures.