GeocodingPlatform class abstract

The interface that implementations of Geocoding must implement.

Platform implementations should extend this class rather than implement it as Geocoding does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added GeocodingPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • GeocodingPlatform

Constructors

GeocodingPlatform()
Constructs a GeocodingPlatform.

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

locationFromAddress(String address, {String? localeIdentifier}) Future<List<Location>>
Returns a list of Location instances found for the supplied address.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
placemarkFromCoordinates(double latitude, double longitude, {String? localeIdentifier}) Future<List<Placemark>>
Returns a list of Placemark instances found for the supplied coordinates.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance GeocodingPlatform
The default instance of GeocodingPlatform to use.
getter/setter pair