Rank enum
An enum that expresses a rank of Card.
Constructors
- Rank(int power)
-
const
- Rank.fromIndex(int index)
-
Returns a Suit from an integer value. The value must be 0 <= value <= 12.
factory
- Rank.parse(String value)
-
Parses a char (1-charactor-length string) and returns a Rank. The value must be one of
"A"
,"2"
,"3"
,"4"
,"5"
,"6"
,"7"
,"8"
,"9"
,"T"
,"J"
,"Q"
or"K"
.factory
Values
- ace → const Rank
-
const Rank(12)
- deuce → const Rank
-
const Rank(0)
- trey → const Rank
-
const Rank(1)
- four → const Rank
-
const Rank(2)
- five → const Rank
-
const Rank(3)
- six → const Rank
-
const Rank(4)
- seven → const Rank
-
const Rank(5)
- eight → const Rank
-
const Rank(6)
- nine → const Rank
-
const Rank(7)
- ten → const Rank
-
const Rank(8)
- jack → const Rank
-
const Rank(9)
- queen → const Rank
-
const Rank(10)
- king → const Rank
-
const Rank(11)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns 1-char length string represents the rank.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited