ChessBoardWidget constructor
ChessBoardWidget({
- Key? key,
- Player? onTop,
- required ChessGameState state,
- ChessBoardStyle? style,
- List<
ChessBoardAnimation> ? animations, - List<
Arrow> ? arrows, - required void onPlayMove(
- ChessMove
- void onAnimationsCompleted()?,
Implementation
ChessBoardWidget(
{Key? key,
Player? onTop,
required this.state,
ChessBoardStyle? style,
List<ChessBoardAnimation>? animations,
List<Arrow>? arrows,
required this.onPlayMove,
this.onAnimationsCompleted})
: onTop = onTop ?? Player.black,
animations = animations ?? [],
arrows = arrows ?? [],
super(key: key) {
this.style = style ?? defaultChessBoardStyle;
}