WorkoutReading constructor
WorkoutReading(
- WorkoutFeature feature,
- double value,
- int? timestamp
Constructor
Implementation
WorkoutReading(this.feature, this.value, int? timestamp)
: timestamp = timestamp != null
? DateTime.fromMillisecondsSinceEpoch(timestamp)
: DateTime.now();