Workout constructor

Workout({
  1. required String uuid,
  2. required DateTime start,
  3. required DateTime end,
  4. required SourceRevision sourceRevision,
  5. required WorkoutActivityType workoutActivityType,
  6. required Duration duration,
  7. Map<String, dynamic>? metadata,
  8. Device? device,
  9. SampleTypeId type = HKSampleTypeIdentifier.workout,
})

Implementation

Workout({
  required super.uuid,
  required super.start,
  required super.end,
  required super.sourceRevision,
  required this.workoutActivityType,
  required this.duration,
  super.metadata,
  super.device,
  super.type = HKSampleTypeIdentifier.workout,
});