removeDuplicates static method
Given an array of HealthDataPoints, this method will return the array without any duplicates.
Implementation
static List<HealthDataPoint> removeDuplicates(List<HealthDataPoint> points) {
return LinkedHashSet.of(points).toList();
}