Role enum

Piece role, such as pawn, knight, etc.

Inheritance
Available extensions

Values

pawn → const Role
knight → const Role
bishop → const Role
rook → const Role
king → const Role
queen → const Role

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
letter String
Gets the role letter in lowercase (as for black piece in FEN notation).
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uppercaseLetter String
Gets the role letter in uppercase (as for white piece in FEN notation).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromChar(String ch) Role?
Gets the role from a character.

Constants

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