InventorySnapshot class
Immutable view of one inventory — display order is slots' list order.
Constructors
-
InventorySnapshot({required List<
InventorySlot> slots, required int capacity}) -
const
Properties
- capacity → int
-
final
-
equippedSlots
→ List<
InventorySlot> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFull → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
slots
→ List<
InventorySlot> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quantityOf(
String itemId) → int -
slotsFor(
String itemId) → List< InventorySlot> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited