getHealthPermissionsFromClient function

Future<List<HealthPermission>> getHealthPermissionsFromClient(
  1. Client? client
)

Implementation

Future<List<HealthPermission>> getHealthPermissionsFromClient(
    Client? client) async {
  final googleHealthPermissions =
      await getGoogleHealthPermissionFromClient(client);
  final appleHealthPermissions =
      await getAppleHealthPermissionFromClient(client);
  return [...appleHealthPermissions, ...googleHealthPermissions];
}