ProductItem class

Constructors

ProductItem({required String id, required String name, String image = "", String price = "", int quantity = 1})

Properties

categories List<ProductCategory>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
image String
getter/setter pair
name String
getter/setter pair
price String
getter/setter pair
quantity int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCategory(ProductCategory category) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCategories(List<ProductCategory> categories) → void
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

convertToList(List<ProductItem> products) List<Map<String, dynamic>>