Suit enum

An enum that expresses a suit of Card.

Inheritance

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

Values

spade → const Suit
heart → const Suit
diamond → const Suit
club → const Suit

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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.
override

Operators

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

Constants

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