Deck class final

Represents a pre-made or custom deck of 52+ cards.

Each deck includes:

A deck doesn't include more than 3 cppies of any card.

Annotations
  • @immutable

Constructors

Deck({required UnitCard leader, required BaseCard base, required List<PlayableCard> cards})
Creates a new deck with the given leader, base, and other cards.
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