STRCart class
This data class represents a product cart
Constructors
-
STRCart({required List<
STRCartItem> items, double? oldTotalPrice, required double totalPrice, required String currency}) -
STRCart.fromJson(Map<
String, dynamic> json) -
factory
Properties
- currency → String
-
Represents the currency of total prices
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
STRCartItem> -
List of STRCartItem objects representing the items added to the cart
final
- oldTotalPrice → double?
-
Represents the old total price of all the items in the cart
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalPrice → double
-
Indicates the current total price of all the items in the cart
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