ChessPieceWidget constructor

const ChessPieceWidget({
  1. Key? key,
  2. required Piece piece,
  3. required double squareSize,
  4. required bool isBoardEnabled,
  5. bool isDragging = false,
  6. void onTap()?,
})

Implementation

const ChessPieceWidget({
  super.key,
  required this.piece,
  required this.squareSize,
  required this.isBoardEnabled,
  this.isDragging = false,
  this.onTap,
});