DropMove class

Represents a drop move.

Inheritance
Annotations
  • @immutable

Constructors

DropMove({required Square to, required Role role})
Constructs a DropMove from a target square and a role.
const
DropMove.fromUci(String uci)
Constructs a DropMove from a UCI string.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
role Role
The Role of the dropped piece.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
squares Iterable<Square>
Returns an iterable of all squares involved in this move.
no setteroverride
to Square
The target square of this move.
finalinherited
uci String
Gets UCI notation of the drop, like Q@f7.
no setteroverride

Methods

hasSquare(Square square) bool
Returns true if square is a square of this move.
override
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 other) bool
The equality operator.
override