ChessBoardWidget constructor

const ChessBoardWidget({
  1. Key? key,
  2. required ChessBoardInterface game,
  3. required FlutterArbiter arbiter,
  4. PieceColor? playAs,
  5. dynamic onMove(
    1. Position,
    2. Position
    )?,
  6. bool rotateBoard = false,
  7. bool spectateInitially = true,
  8. required double boardSize,
  9. required BoardThemeConfig config,
})

Implementation

const ChessBoardWidget({
  super.key,
  required this.game,
  required this.arbiter,
  this.playAs,
  this.onMove,
  this.rotateBoard = false,
  this.spectateInitially = true,
  required this.boardSize,
  required this.config,
});