getProductString static method
- ProductQueryConfiguration configuration,
- {User? user,
- 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;
}