PieceDefinition class
A definition of a PieceType
, specific to a Variant
.
You don't ever need to build these, they are generated in variant initialisation.
Constructors
- PieceDefinition({required PieceType type, required String symbol, required int value})
-
const
- PieceDefinition.empty()
-
factory
Properties
Methods
-
char(
Colour colour) → String -
The symbol of this piece definition, respecting its
colour
. -
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.
inherited