WorkoutReading constructor

WorkoutReading(
  1. WorkoutFeature feature,
  2. double value,
  3. int? timestamp
)

Constructor

Implementation

WorkoutReading(this.feature, this.value, int? timestamp)
    : timestamp = timestamp != null
          ? DateTime.fromMillisecondsSinceEpoch(timestamp)
          : DateTime.now();