CartItem class

Cart Model for managing cart data

Constructors

CartItem({dynamic uuid, dynamic productId, String? productName, dynamic unitPrice, dynamic subTotal, int quantity = 0, dynamic productDetails, int itemCartIndex = -1, dynamic uniqueCheck})
CartItem.fromJson(String str)
factory
CartItem.fromMap(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
itemCartIndex int
getter/setter pair
productDetails ↔ dynamic
getter/setter pair
productId ↔ dynamic
getter/setter pair
productName String?
getter/setter pair
quantity int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subTotal ↔ dynamic
getter/setter pair
uniqueCheck ↔ dynamic
getter/setter pair
unitPrice ↔ dynamic
getter/setter pair
uuid ↔ dynamic
getter/setter pair

Methods

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

Operators

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