STRCartItem class

This data class represents an item in product cart

Constructors

STRCartItem({required STRProductItem item, required int quantity, double? oldTotalPrice, double? totalPrice})
STRCartItem.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
item STRProductItem
Represents the product associated with this cart item
final
oldTotalPrice double?
Represents the current total price of this item
final
quantity int
Indicates the quantity of this item added to the cart
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalPrice double?
Represents the old total price of this item
final

Methods

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