CatalogueElement class
Defines an element in the party catalogue.
Constructors
- CatalogueElement({String elementName, int elementQuantity, int chosenQuantity, int elementValue })
- CatalogueElement.fromFirestore(Map snapshot, String id)
- Constructor used when the catalogue is downloaded from Firestore. It is used in the CategoryTilesList class, when the Party Master creates a new catalogue.
- CatalogueElement.fromMap(Map map)
-
Constructor used to create the element from a
Map
. It is used in the Catalogue class to transform the Catalogue in the DB in a matrix.
Properties
- chosenQuantity ↔ int
-
The quantity of the element that was altready chosen.
read / write
- elementId ↔ String
-
The ID of the element on the DB.
read / write
- elementName ↔ String
-
The name of the element.
read / write
- elementQuantity ↔ int
-
The quantity of the element, chosen by the party organiser.
read / write
- elementValue ↔ int
-
The value of the element.
read / write
- locallyChosenQuantity ↔ int
-
The quantity chosen locally by the user that is taking part to the party.
read / write
- remainingQuantity → int
-
The remaining quantity of elements.
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
catalogueElementMapper(
) → dynamic -
Creates a
Map
from a CatalogueElement instance. It's used in the Catalogue class, to create aMap
from the catalogue. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited