HeartRate constructor

HeartRate({
  1. required HeartRateUnitValue heartRate,
  2. String? temporalRelationshipToPhysicalActivity,
  3. String? temporalRelationshipToSleep,
})

Creates a PhysicalActivity. The activityName is required according to the OMH definition.

Implementation

HeartRate({
  required this.heartRate,
  this.temporalRelationshipToPhysicalActivity,
  this.temporalRelationshipToSleep,
});