Warenkorb class
Constructors
-
Warenkorb({required List<
Position> positionen}) -
const
- Warenkorb.leer()
-
Ein Verkauf, an dem noch nichts erfasst ist.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- istLeer → bool
-
no setter
-
positionen
→ List<
Position> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summeCents → int
-
no setter
Methods
-
abgezogen(
Warenkorb verkauft) → Warenkorb - Zieht die verkauften Positionen ab.
-
entfernt(
String id) → Warenkorb - Nimmt genau eine Position heraus.
-
hinzugefuegt(
Positionsentwurf entwurf) → Warenkorb - Legt eine Position mit Menge 1 an.
-
mengeGesetzt(
String id, int menge) → Warenkorb - Setzt die Menge einer Position.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
zeilen(
KasseMenge modus) → List< Korbzeile> - Zeilen für die Anzeige je Mengenmodus: KasseMenge.aus löst gebündelte Positionen in eine Zeile je Stück zum Einzelpreis auf.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited