Workout constructor
Workout({
- required String uuid,
- required DateTime start,
- required DateTime end,
- required SourceRevision sourceRevision,
- required WorkoutActivityType workoutActivityType,
- required Duration duration,
- Map<
String, dynamic> ? metadata, - Device? device,
- 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,
});