EanDb class

Main class for interacting with the EAN-DB API.

Provides methods to retrieve account information and look up products by barcode.

Constructors

EanDb({required String token})
Creates a new EanDb instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
The authentication token used for API requests.
final

Methods

barcodeLookup({required String barcode}) Future<Response<Product>>
Looks up product information by barcode.
getAccount() Future<Response<Account>>
Retrieves the user account information.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited