LocationResult class

Contains the result from a location request.

isSuccessful means a location was retrieved and locations is guaranteed to contain at least one Location. Otherwise, error will contain more details.

See also:

Inheritance

Properties

location Location
Most up-to-date location. If isSuccessful is true, location is guaranteed to contain a Location.
read-only
locations List<Location>
Location updates might return more than one location at once. It contains all the locations that were retrieved by the device since the previous result. Locations are ordered from oldest to newest. If isSuccessful is true, locations is guaranteed to contain at least one Location.
final
error GeolocationResultError
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isSuccessful bool
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dataToString() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited