getHealthPermissionsFromApi function
Future<List<HealthPermission> >
getHealthPermissionsFromApi(
- List<
AppleQuantityTypeClient?> quantityTypes, - List<
AppleCategoryTypeClient?> categoryTypes, - List<
GoogleParameterTypeClient?> parameterTypes
Implementation
Future<List<HealthPermission>> getHealthPermissionsFromApi(
List<AppleQuantityTypeClient?> quantityTypes,
List<AppleCategoryTypeClient?> categoryTypes,
List<GoogleParameterTypeClient?> parameterTypes) async {
final parameterHealthPermissions =
await convertParameterTypesToHealthDataType(parameterTypes);
return [
...covertQuantityTypesToHealthDataType(quantityTypes),
...covertCategoryTypesToHealthDataType(categoryTypes),
...parameterHealthPermissions,
];
}