Geolocation class
An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- Geolocation.new()
-
factory
Properties
- clearWatch ↔ void Function(num)
-
Available on Geolocation, provided by the Geolocation$Typings extension
getter/setter pair - getCurrentPosition ↔ void Function(PositionCallback, [PositionErrorCallback?, PositionOptions?])
-
Available on Geolocation, provided by the Geolocation$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- watchPosition ↔ num Function(PositionCallback, [PositionErrorCallback?, PositionOptions?])
-
Available on Geolocation, provided by the Geolocation$Typings extension
getter/setter pair
Methods
-
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