LocationListPhotonSupplier class

Asynchronously loads locations from Photon and query searches.

We use 2 location suppliers:

  • the first one optimized on shops, as it's what we want.
  • an optional one with no restrictions, in case OSM data is a bit clumsy.
Inheritance

Constructors

LocationListPhotonSupplier(String query, bool optimizedSearch)

Properties

alternateSupplier → LocationListSupplier?
Returns a possible alternate supplier, probably less restrictive.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
locations → List<OsmLocation>
Locations as result.
finalinherited
optimizedSearch → bool
True if we want to focus on shops.
final
query → String
Query text.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

asyncLoad() → Future<String?>
Returns null if OK, or the message error
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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