CheckoutLineItem class final

One client-safe line in the Checkout Order snapshot.

Constructors

CheckoutLineItem({required String id, required String name, required CheckoutMoney total, int? quantity})
Creates one line in a client-safe Order snapshot.
const
CheckoutLineItem.fromJson(Map<Object?, Object?> value)
Parses and validates a line item from the native bridge.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
Public line-item identifier.
final
name → String
Customer-facing line-item name.
final
quantity → int?
Item quantity when the Order supplies one.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
total → CheckoutMoney
Total amount for this line.
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