removeDuplicates static method

List<HealthDataPoint> removeDuplicates(
  1. List<HealthDataPoint> points
)

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();
}