BasketState

The state of a Basket, changed in place by its events: its items, one line per product, and how many times it was checked out. Every property has a value before the first event.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun item(productId: String): BasketItem?

The line of productId, null when the basket holds none.