Deck class final
Represents a pre-made or custom deck of 52+ cards.
Each deck includes:
- 1 leader
- 1 base
- At least 50 other UnitCards, EventCards, and UpgradeCards.
A deck doesn't include more than 3 cppies of any card.
- Annotations
-
- @immutable
Constructors
-
Deck.new({required UnitCard leader, required BaseCard base, required List<
PlayableCard> cards}) -
Creates a new deck with the given
leader
,base
, and othercards
.factory
Properties
-
aspects
→ Set<
Aspect> -
All aspects in this deck (i.e. inherited from both leader and base).
latefinal
- base → BaseCard
-
The base of this deck.
final
-
cards
→ List<
PlayableCard> -
The other cards in this deck.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- leader → UnitCard
-
The leader of this deck.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override