CartItem class

Implemented types
Annotations

Constructors

CartItem()
CartItem.fromJson(Map<String, dynamic> json)
factory

Properties

changesFromLastUpdate Map<String, dynamic>
The map containing the changes on the lastUpdate [...]
@JsonKey(defaultValue: const {}), read / write
discountPrice double
The discount price applied to this item (if any) [...]
read / write
expirationDate DateTime
The CartItem has an expiration date [...]
read / write
featuredCharacteristics List<FeaturedCharacteristic>
@JsonKey(defaultValue: []), read / write
hasChanged bool
Some shorthand methods to simplify the check of changesFromLastUpdate for the most used variables
read-only
hasChangedPrice bool
read-only
hasChangedQuantity bool
read-only
hasChangedTotalAmount bool
read-only
hasChangedUnitPrice bool
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
The CartItem unique identifier
read / write
isGift bool
Indicates if the cartItem is a regular one or a gift one
@JsonKey(defaultValue: false), read / write
isPromotional bool
Indicates if the cartItem is a regular one or a promotional one
@JsonKey(defaultValue: false), read / write
price double
@Deprecated("Please use subTotalAmount instead"), read / write
priceSeparated double
@Deprecated("Please use subTotalSeparatedAmount instead"), read / write
quantity int
The quantity requested by the user for this item
read / write
quantityAvailable int
The quantity available on the seller for this item
read / write
quantitySeparated int
The quantity separated (a.k.a. that can be bought) for this item
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sku Sku
The sku related to this item
read / write
subTotalAmount double
The subtotal price of this item, without any modifiers [...]
read / write
subTotalSeparatedAmount double
The subtotal price of this item, considering only the SEPARATED ITEMS and without any modifiers [...]
read / write
totalAmount double
The total price of this item, applying the modifiers [...]
read / write
totalSeparatedAmount double
The total price of this item, considering only the SEPARATED ITEMS and applying the modifiers [...]
read / write
unitPrice double
The price of each unit of this item, without any modifiers
read / write
usingWholesalePrice bool
read / write

Methods

compareTo(CartItem other) int
Compares this object to another object. [...]
override
isUpdatingFrom(CartItem cartItem, {bool forceUpdate = false}) → void
migrateToCurrentVersion() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

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