Suit enum
An enum that expresses a suit of Card.
Constructors
- Suit()
-
const
- Suit.fromIndex(int index)
-
Returns a Suit from an integer value. The value must be 0 <= value <= 3.
factory
- Suit.parse(String value)
-
Parses a char (1-charactor-length string) and returns a Suit. The value must be one of
"s"
,"h"
,"d"
or"c"
.factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns 1-char length string.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited