CurrentLocation class

Constructors

CurrentLocation({num? latitude, num? longitude, String? provider, num? speed, num? bearing, num? altitude, num? accuracy, num? speedAccuracyMetersPerSecond})
CurrentLocation.fromJson(Map<String, dynamic> json)
factory

Properties

accuracy num?
final
altitude num?
final
bearing num?
final
hashCode int
The hash code for this object.
no setterinherited
latitude num?
final
longitude num?
final
provider String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed num?
final
speedAccuracyMetersPerSecond num?
This is not available on Android devices below API 26 (Android O version). On android devices below API 26, this will return speed value. We don't require the minimum API level to be 26 because we want to support as many devices as possible.
final

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