Coordinates class
Coordinates part of the Location object.
class Coordinates extends ChromeObject { Coordinates({num latitude, num longitude, num altitude, num accuracy, num altitudeAccuracy, num heading, num speed}) { if (latitude != null) this.latitude = latitude; if (longitude != null) this.longitude = longitude; if (altitude != null) this.altitude = altitude; if (accuracy != null) this.accuracy = accuracy; if (altitudeAccuracy != null) this.altitudeAccuracy = altitudeAccuracy; if (heading != null) this.heading = heading; if (speed != null) this.speed = speed; } Coordinates.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); num get latitude => jsProxy['latitude']; set latitude(num value) => jsProxy['latitude'] = jsify(value); num get longitude => jsProxy['longitude']; set longitude(num value) => jsProxy['longitude'] = jsify(value); num get altitude => jsProxy['altitude']; set altitude(num value) => jsProxy['altitude'] = jsify(value); num get accuracy => jsProxy['accuracy']; set accuracy(num value) => jsProxy['accuracy'] = jsify(value); num get altitudeAccuracy => jsProxy['altitudeAccuracy']; set altitudeAccuracy(num value) => jsProxy['altitudeAccuracy'] = jsify(value); num get heading => jsProxy['heading']; set heading(num value) => jsProxy['heading'] = jsify(value); num get speed => jsProxy['speed']; set speed(num value) => jsProxy['speed'] = jsify(value); }
Extends
ChromeObject > Coordinates
Constructors
new Coordinates({num latitude, num longitude, num altitude, num accuracy, num altitudeAccuracy, num heading, num speed}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
Coordinates({num latitude, num longitude, num altitude, num accuracy, num altitudeAccuracy, num heading, num speed}) { if (latitude != null) this.latitude = latitude; if (longitude != null) this.longitude = longitude; if (altitude != null) this.altitude = altitude; if (accuracy != null) this.accuracy = accuracy; if (altitudeAccuracy != null) this.altitudeAccuracy = altitudeAccuracy; if (heading != null) this.heading = heading; if (speed != null) this.speed = speed; }
new Coordinates.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
Coordinates.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
num accuracy #
num get accuracy => jsProxy['accuracy'];
set accuracy(num value) => jsProxy['accuracy'] = jsify(value);
num altitude #
num get altitude => jsProxy['altitude'];
set altitude(num value) => jsProxy['altitude'] = jsify(value);
num altitudeAccuracy #
num get altitudeAccuracy => jsProxy['altitudeAccuracy'];
set altitudeAccuracy(num value) => jsProxy['altitudeAccuracy'] = jsify(value);
num heading #
num get heading => jsProxy['heading'];
set heading(num value) => jsProxy['heading'] = jsify(value);
num latitude #
num get latitude => jsProxy['latitude'];
set latitude(num value) => jsProxy['latitude'] = jsify(value);
num longitude #
num get longitude => jsProxy['longitude'];
set longitude(num value) => jsProxy['longitude'] = jsify(value);
num speed #
num get speed => jsProxy['speed'];
set speed(num value) => jsProxy['speed'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();