MasterDeck class cards

MasterDeck | wiki

A static object that describes the properties of a new deck of cards for a certain game.

For example, the "English" master deck has 52 cards, no jokers, aces are high, and no duplicate cards are allowed. The "Canasta" deck has 108 cards including jokers and duplicates. Since this is all unchanging information, MasterDeck.byName() just returns a pointer to an existing static object based on the name you pass in.

Constructors

MasterDeck.byName(String dname)
Get a MasterDeck object by name or alias.
factory

Properties

cardList List<Card>
final
cardSet int
final
dupsAllowed bool
final
hashCode int
The hash code for this object.
no setterinherited
lowAces bool
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setter

Methods

has(Card c) bool
Does this deck contain the given card?
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.
inherited

Constants

aliases → const Map<String, int>
decks → const List<MasterDeck>