CMPedometerData class

Information about the distance traveled by a user on foot.

Constructors

CMPedometerData({required DateTime? startDate, required DateTime? endDate, required int numberOfSteps, double? distance, double? averageActivePace, double? currentPace, double? currentCadence, int? floorsAscended, int? floorsDescended})
Creates a new pedometer data instance with the current timestamp.
CMPedometerData.fromJson(dynamic e)
Creates a pedometer data instance from a JSON-like map

Properties

averageActivePace double?
The average pace of the user, measured in seconds per meter. (if available)
final
currentCadence double?
The rate at which steps are taken, measured in steps per second. (if available)
final
currentPace double?
The current pace of the user, measured in seconds per meter. (if available)
final
distance double?
The estimated distance (in meters) traveled by the user. (if available)
final
endDate DateTime?
The end time for the pedometer data. (if available)
final
floorsAscended int?
The approximate number of floors ascended by walking. (if available)
final
floorsDescended int?
The approximate number of floors descended by walking. (if available)
final
hashCode int
The hash code for this object.
no setterinherited
numberOfSteps int
The number of steps taken by the user.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDate DateTime?
The start time for the pedometer data. (if available)
final
timeStamp DateTime
Timestamp when this measurement was created.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited