getDataPoint method

Future<List<HealthDataPoint>> getDataPoint(
  1. List<HealthDataType> types,
  2. DateTime start,
  3. DateTime end
)

Implementation

Future<List<HealthDataPoint>> getDataPoint(
  List<HealthDataType> types,
  DateTime start,
  DateTime end,
) async {
  List<HealthDataPoint> healthData = await health.getHealthDataFromTypes(
    startTime: start,
    endTime: end,
    types: types,
  );

  return healthData;
}