PulseWorkoutReading constructor
PulseWorkoutReading(
- PulseWorkoutType feature,
- double value, {
- int? timestamp,
Constructs a PulseWorkoutReading with the given feature
, value
, and optional timestamp
.
If timestamp
is not provided, the current time is used.
Implementation
PulseWorkoutReading(this.feature, this.value, {int? timestamp})
: timestamp = timestamp != null
? DateTime.fromMillisecondsSinceEpoch(timestamp)
: DateTime.now();