ChessMove class

Constructors

ChessMove({required ChessPiece piece, required Point<int> start, required Point<int> end, ChessPiece capture = ChessPiece.none, ChessPiece promotion = ChessPiece.none, Castling castling = Castling.none, bool enPessant = false, String moveString = ""})

Properties

capture ChessPiece
final
castling → Castling
final
end Point<int>
final
enPessant bool
final
hashCode int
The hash code for this object.
no setteroverride
moveString String
final
piece ChessPiece
final
promotion ChessPiece
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Point<int>
final

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 o) bool
The equality operator.
override