getData abstract method

Retrieves health data for the specified metrics within a time range. Returns a list of health data records that match the criteria.

Implementation

Future<List<HealthConnectData>> getData(
  List<HealthConnectHealthMetric> metrics,
  DateTimeRange timeRange,
);