PlayedMove class

Inheritance

Constructors

PlayedMove(Square from, Square to, Piece? pieceOnLandingSquare, Piece? promotionTo)
Constructs new PlayedMove object for move from square to square with info about pieceOnLandingSquare.
const

Properties

from Square
Square from where the piece was taken.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
pieceOnLandingSquare Piece?
A Piece that was potentially on the to square, or null, if the to square was empty. Used when undoing moves.
final
promotionTo Piece?
If the piece moved is Pawn and it has reached last rank, then this field holds information to what Piece it was promoted.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to Square
Square to where the piece was placed.
finalinherited

Methods

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

Operators

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