OpenMHealthHeartRate constructor

OpenMHealthHeartRate({
  1. required UnitValue heartRate,
  2. required TimeFrame effectiveTimeFrame,
  3. String? descriptiveStatistic,
  4. String? temporalRelationshipToPhysicalActivity,
  5. String? temporalRelationshipToSleep,
})

Creates a new heart rate measurement.

@param heartRate The heart rate value with its unit. @param effectiveTimeFrame When the measurement was taken. @param descriptiveStatistic Optional statistical context for aggregated values. @param temporalRelationshipToPhysicalActivity Optional relationship to physical activity. @param temporalRelationshipToSleep Optional relationship to sleep cycle.

Implementation

OpenMHealthHeartRate({
  required this.heartRate,
  required this.effectiveTimeFrame,
  this.descriptiveStatistic,
  this.temporalRelationshipToPhysicalActivity,
  this.temporalRelationshipToSleep,
});