Piece class
- Annotations
-
- @immutable
Properties
Methods
-
copyWith(
{Side? color, Role? role, bool? promoted}) → Piece -
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