Rank enum cards

Inheritance
Implemented types

Constructors

Rank()
const

Values

None → const Rank
LowAce → const Rank
Deuce → const Rank
Trey → const Rank
Four → const Rank
Five → const Rank
Six → const Rank
Seven → const Rank
Eight → const Rank
Nine → const Rank
Ten → const Rank
Jack → const Rank
Knight → const Rank
Queen → const Rank
King → const Rank
Ace → const Rank

Properties

article String
Indefinite article (to deal with "an eight, an ace")
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String
Full English name
no setter
plural String
Full English plural name (to deal with "sixes")
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(Rank other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toChar() String
Render as text
toString() String
A string representation of this object.
inherited

Operators

operator <(Rank other) bool
operator <=(Rank other) bool
operator ==(Object other) bool
The equality operator.
inherited
operator >(Rank other) bool
operator >=(Rank other) bool

Static Methods

fromChar(String c) Rank?
Create one from text character.

Constants

values → const List<Rank>
A constant List of the values in this enum, in order of their declaration.