GeolocationCoordinates extension type
The GeolocationCoordinates interface represents the position and
altitude of the device on Earth, as well as the accuracy with which these
properties are calculated.
The geographic position information is provided in terms of World Geodetic
System coordinates (WGS84).
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Properties
- accuracy → double
- 
  The accuracyread-only property of the GeolocationCoordinates interface is a strictly positivedoublerepresenting the accuracy, with a 95% confidence level, of the GeolocationCoordinates.latitude and GeolocationCoordinates.longitude properties expressed in meters.no setter
- altitude → double?
- 
  The altituderead-only property of the GeolocationCoordinates interface is adoublerepresenting the altitude of the position in meters above the WGS84 ellipsoid (which defines the nominal sea level surface). This value isnullif the implementation cannot provide this data.no setter
- altitudeAccuracy → double?
- 
  The altitudeAccuracyread-only property of the GeolocationCoordinates interface is a strictly positivedoublerepresenting the accuracy, with a 95% confidence level, of thealtitudeexpressed in meters. This value isnullif the implementation doesn't support measuring altitude.no setter
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- heading → double?
- 
  The headingread-only property of the GeolocationCoordinates interface is adoublerepresenting the direction in which the device is traveling. This value, specified in degrees, indicates how far off from heading due north the device is.0degrees represents true north, and the direction is determined clockwise (which means that east is90degrees and west is270degrees). If GeolocationCoordinates.speed is0,headingisNaN. If the device is not able to provide heading information, this value isnull.no setter
- isDefinedAndNotNull → bool
- 
      Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension no setter
- isNull → bool
- 
      Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension Whether this value corresponds to JavaScriptnull.no setter
- isTruthy → JSBoolean
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result of!!in JavaScript.thisno setter
- isUndefined → bool
- 
      Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension Whether this value corresponds to JavaScriptundefined.no setter
- isUndefinedOrNull → bool
- 
      Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension no setter
- latitude → double
- 
  The latituderead-only property of the GeolocationCoordinates interface is adoublerepresenting the latitude of the position in decimal degrees.no setter
- longitude → double
- 
  The longituderead-only property of the GeolocationCoordinates interface is a number which represents the longitude of a geographical position, specified in decimal degrees. Together with a timestamp, given as in milliseconds, indicating a time of measurement, theGeolocationCoordinatesobject is part of the GeolocationPosition interface, which is the object type returned by Geolocation API functions that obtain and return a geographical position.no setter
- not → JSBoolean
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result of!in JavaScript.thisno setter
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- speed → double?
- 
  The speedread-only property of the GeolocationCoordinates interface is adoublerepresenting the velocity of the device in meters per second. This value isnullif the implementation is not able to measure it.no setter
Methods
- 
  add(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis+any
- 
  and(JSAny? any) → JSAny? 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis&&any
- 
  callMethod<R extends JSAny?> (JSAny method, [JSAny? arg1, JSAny? arg2, JSAny? arg3, JSAny? arg4]) → R 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Callsmethodon this JSObject with up to four arguments.
- 
  callMethodVarArgs<R extends JSAny?> (JSAny method, [List< JSAny?> ? arguments]) → R
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Callsmethodon this JSObject with a variable number ofarguments.
- 
  dartify() → Object? 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Converts a JavaScript JSON-like value to the Dart equivalent if possible.
- 
  delete(JSAny property) → JSBoolean 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Deletes the property with keypropertyfrom this JSObject.
- 
  divide(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis/any
- 
  equals(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis==any
- 
  exponentiate(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis**any
- 
  getProperty<R extends JSAny?> (JSAny property) → R 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension The value of the property keypropertyof this JSObject.
- 
  greaterThan(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis>any
- 
  greaterThanOrEqualTo(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis>=any
- 
  has(String property) → bool 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Shorthand helper for hasProperty to check whether this JSObject contains the property keyproperty, but takes and returns a Dart value.
- 
  hasProperty(JSAny property) → JSBoolean 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Whether or not this JSObject contains the property keyproperty.
- 
  instanceof(JSFunction constructor) → bool 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Whether thisJSAny?is aninstanceofconstructor.
- 
  instanceOfString(String constructorName) → bool 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Whether thisJSAny?is aninstanceofthe constructor that is defined byconstructorName, which is looked up in the globalContext.
- 
  isA<T extends JSAny?> () → bool 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Whether thisJSAny?is an instance of the JavaScript type that is declared byT.
- 
  lessThan(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis<any
- 
  lessThanOrEqualTo(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis<=any
- 
  modulo(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis%any
- 
  multiply(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis*any
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  notEquals(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis!=any
- 
  or(JSAny? any) → JSAny? 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis||any
- 
  setProperty(JSAny property, JSAny? value) → void 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Write thevalueof property keypropertyof this JSObject.
- 
  strictEquals(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis===any
- 
  strictNotEquals(JSAny? any) → JSBoolean 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis!==any
- 
  subtract(JSAny? any) → JSAny 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis-any
- 
  toJSON() → JSObject 
- 
  The toJSON()method of the GeolocationCoordinates interface is a ; it returns a JSON representation of the GeolocationCoordinates object.
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  typeofEquals(String typeString) → bool 
- 
      Available on JSAny?, provided by the JSAnyUtilityExtension extension Whether the result oftypeofon thisJSAny?istypeString.
- 
  unsignedRightShift(JSAny? any) → JSNumber 
- 
      Available on JSAny?, provided by the JSAnyOperatorExtension extension The result ofthis>>>any
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
- 
  operator [](String property) → JSAny? 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Shorthand helper for getProperty to get the value of the property keypropertyof this JSObject, but takes a Dart value.
- 
  operator []=(String property, JSAny? value) → void 
- 
      Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension Shorthand helper for setProperty to write thevalueof the property keypropertyof this JSObject, but takes a Dart value.