Cart class

Constructors

Cart({required List<Position> items})
const
Cart.empty()
Ein Verkauf, an dem noch nichts erfasst ist.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
no setter
items → List<Position>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalCents → int
no setter

Methods

added(CartItemDraft draft) → Cart
Legt eine Position mit Menge 1 an.
lines(PosQuantity mode) → List<CartLine>
Zeilen fuer die Anzeige je Mengenmodus: PosQuantity.off loest gebuendelte Positionen in eine Zeile je Stueck zum Einzelpreis auf.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removed(String id) → Cart
Nimmt genau eine Position heraus.
subtracted(Cart sold) → Cart
Zieht die verkauften Positionen ab.
toString() → String
A string representation of this object.
inherited
withQuantity(String id, int quantity) → Cart
Setzt die Menge einer Position.

Operators

operator ==(Object other) → bool
The equality operator.
inherited