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

blackBishop → const Piece
blackKing → const Piece
blackKnight → const Piece
blackPawn → const Piece
blackQueen → const Piece
blackRook → const Piece
whiteBishop → const Piece
whiteKing → const Piece
whiteKnight → const Piece
whitePawn → const Piece
whiteQueen → const Piece
whiteRook → const Piece