Product class

Represents a product in the EAN-DB system.

Contains comprehensive information about a product, including its barcode, titles, categories, manufacturer, images, and other metadata.

Implementers

Constructors

Product({required String barcode, BarcodeDetails? barcodeDetails, required Titles titles, List<Category> categories = const [], Manufacturer? manufacturer, List<Manufacturer> relatedBrands = const [], List<Image> images = const [], Map<String, dynamic>? metadata})
Creates a new Product instance.

Properties

barcode String
The product's EAN/UPC barcode.
final
barcodeDetails BarcodeDetails?
Additional information about the barcode.
final
categories List<Category>
List of categories the product belongs to.
final
hashCode int
The hash code for this object.
no setterinherited
images List<Image>
List of product images.
final
manufacturer Manufacturer?
The product's manufacturer.
final
metadata Map<String, dynamic>?
Additional product metadata.
final
relatedBrands List<Manufacturer>
List of brands related to the product.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titles Titles
The product's titles in different languages.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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