getProductString static method

Future<String> getProductString(
  1. ProductQueryConfiguration configuration,
  2. {User? user,
  3. UriProductHelper uriHelper = uriHelperFoodProd}
)

Returns the response body of "get product" API for the given barcode.

Implementation

static Future<String> getProductString(
  final ProductQueryConfiguration configuration, {
  final User? user,
  final UriProductHelper uriHelper = uriHelperFoodProd,
}) async {
  final Response response = await configuration.getResponse(user, uriHelper);
  return response.body;
}