barcodeLookup abstract method

Future<Response<Product>> barcodeLookup({
  1. required String barcode,
  2. String? authToken,
})

Looks up product information by barcode.

barcode is the EAN/UPC barcode to look up. authToken is an optional authentication token for the API.

Returns a Response containing the Product information if successful, or an error if the request fails or the product is not found.

Implementation

Future<Response<Product>> barcodeLookup({
  required String barcode,
  String? authToken,
});