ChessBoard class
The Chessboard Widget
Constructors
- ChessBoard({double size: 200.0, bool whiteSideTowardsUser: true, @required MoveCallback onMove, @required CheckMateCallback onCheckMate, @required VoidCallback onDraw, ChessBoardController chessBoardController, bool enableUserMoves: true, BoardType boardType: BoardType.brown })
Properties
- boardType → BoardType
-
The color type of the board
final
- chessBoardController → ChessBoardController
-
A controller to programmatically control the chess board
final
- enableUserMoves → bool
-
A boolean which checks if the user should be allowed to make moves
final
- onCheckMate → CheckMateCallback
-
Callback for when a player is checkmated
final
- onDraw → VoidCallback
-
Callback for when the game is a draw
final
- onMove → MoveCallback
-
Callback for when move is made
final
- size → double
-
Size of chessboard
final
- whiteSideTowardsUser → bool
-
A boolean which notes if white board side is towards users
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- key → Key
-
Controls how one widget replaces another widget in the tree. [...]
final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
createState(
) → _ChessBoardState - Creates the mutable state for this widget at a given location in the tree. [...]
-
createElement(
) → StatefulElement -
Creates a
StatefulElement
to manage this widget's location in the tree. [...]inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
@pragma("vm:entry-point"), inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited