Skip to content
Prev Previous commit
Next Next commit
Add rawWorkoutActivityType to WorkoutHealthValue for improved data re…
…presentation
  • Loading branch information
klnfreedom committed Jul 1, 2025
commit 212dd3e41390d0480b401b6700d09c59b0af509b
3 changes: 3 additions & 0 deletions packages/health/lib/src/health_value_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class WorkoutHealthValue extends HealthValue {
@override
String toString() =>
"""$runtimeType - workoutActivityType: ${workoutActivityType.name},
rawWorkoutActivityType: $rawWorkoutActivityType,
totalEnergyBurned: $totalEnergyBurned,
totalEnergyBurnedUnit: ${totalEnergyBurnedUnit?.name},
totalDistance: $totalDistance,
Expand All @@ -203,6 +204,7 @@ class WorkoutHealthValue extends HealthValue {
@override
bool operator ==(Object other) =>
other is WorkoutHealthValue &&
rawWorkoutActivityType == other.rawWorkoutActivityType &&
workoutActivityType == other.workoutActivityType &&
totalEnergyBurned == other.totalEnergyBurned &&
totalEnergyBurnedUnit == other.totalEnergyBurnedUnit &&
Expand All @@ -214,6 +216,7 @@ class WorkoutHealthValue extends HealthValue {
@override
int get hashCode => Object.hash(
workoutActivityType,
rawWorkoutActivityType,
totalEnergyBurned,
totalEnergyBurnedUnit,
totalDistance,
Expand Down