CartItem class Null safety

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.
read-onlyinherited
itemCartIndex int
read / write
productDetails ↔ dynamic
read / write
productId ↔ dynamic
read / write
productName String?
read / write
quantity int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
subTotal ↔ dynamic
read / write
uniqueCheck ↔ dynamic
read / write
unitPrice ↔ dynamic
read / write
uuid ↔ dynamic
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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