Piece class

Constructors

Piece(BoardColor color, PieceType type)
const

Properties

color BoardColor
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PieceType
final

Methods

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

Operators

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

Constants

BLACK_BISHOP → const Piece
BLACK_KING → const Piece
BLACK_KNIGHT → const Piece
BLACK_PAWN → const Piece
BLACK_QUEEN → const Piece
BLACK_ROOK → const Piece
WHITE_BISHOP → const Piece
WHITE_KING → const Piece
WHITE_KNIGHT → const Piece
WHITE_PAWN → const Piece
WHITE_QUEEN → const Piece
WHITE_ROOK → const Piece