Geolocation class abstract

The Geolocation interface represents an object able to programmatically obtain the position of the device.

See: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation

Constructors

Geolocation()

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

clearWatch(int watchId) → void
usage: clearWatch(id)
getCurrentPosition(PositionCallback successCallback, [PositionErrorCallback? errorCallback, PositionOptions? options]) → void
usage: getCurrentPosition(success, error, options)
getPosition([PositionOptions? options]) Future<GeolocationPosition>
Idiomatic Dart wrapper for getCurrentPosition.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPositionChanged([PositionOptions? options]) Stream<GeolocationPosition>
Idiomatic Dart wrapper for watchPosition.
toString() String
A string representation of this object.
inherited
watchPosition(PositionCallback successCallback, [PositionErrorCallback? errorCallback, PositionOptions? options]) int
usage: watchPosition(success, error, options)

Operators

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