Rank enum

An enum that expresses a rank of Card.

Inheritance

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
power int
Returns power of the rank.
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
Returns 1-char length string represents the rank.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

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