OrderCard class
An order summary.
- Inheritance
-
- Object
- MessageCard
- OrderCard
Constructors
-
OrderCard({required String id, required String code, required String status, required List<
OrderCardItem> items, required num subtotal, required num discount, required num shipping, required num total, required String currency, required String paymentStatus}) -
Creates an order card.
const
- OrderCard.fromJson(Json o)
-
Parses the
orderobject.factory
Properties
- code → String
-
Order code.
final
- currency → String
-
Currency code.
final
- discount → num
-
Discount.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Order id.
final
- isPaid → bool
-
The order was paid.
no setter
-
items
→ List<
OrderCardItem> -
Lines.
final
- kind → String
-
The
kinddiscriminator.no setteroverride - paymentStatus → String
-
paidorunpaid.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shipping → num
-
Shipping.
final
- status → String
-
Order status.
final
- subtotal → num
-
Subtotal.
final
- total → num
-
Total.
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