WorkoutRouteLocation class

Equivalent of WorkoutRoute.Location from HealthKitReporter https://cocoapods.org/pods/HealthKitReporter

Supports map representation.

Has a WorkoutRouteLocation.fromJson constructor to create instances from JSON payload coming from iOS native code. And supports multiple object creation by collect method from JSON list.

Requires CoreLocation permissions provided.

Constructors

WorkoutRouteLocation(num latitude, num longitude, num altitude, num course, num? courseAccuracy, num? floor, num horizontalAccuracy, num speed, num? speedAccuracy, num timestamp, num verticalAccuracy)
const
WorkoutRouteLocation.fromJson(Map<String, dynamic> json)
General constructor from JSON payload

Properties

altitude num
final
course num
final
courseAccuracy num?
final
floor num?
final
hashCode int
The hash code for this object.
no setterinherited
horizontalAccuracy num
final
latitude num
final
longitude num
final
map Map<String, dynamic>
General map representation
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed num
final
speedAccuracy num?
final
timestamp num
final
verticalAccuracy num
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

Static Methods

collect(List list) List<WorkoutRouteLocation>
Simplifies creating a list of objects from JSON payload.