BoardPieces constructor

const BoardPieces({
  1. Key? key,
  2. required PieceSet pieceSet,
  3. required BoardState state,
  4. BoardSize size = BoardSize.standard,
  5. bool draggable = true,
  6. bool animatePieces = true,
  7. Duration animationDuration = Squares.defaultAnimationDuration,
  8. Curve animationCurve = Squares.defaultAnimationCurve,
  9. void onTap(
    1. int
    )?,
  10. void onDragStarted(
    1. int
    )?,
  11. void onDragCancelled(
    1. int
    )?,
  12. void onDragEnd(
    1. int
    )?,
  13. bool ignoreGestures = false,
  14. double piecePadding = 0.0,
  15. PlayerSet dragPermissions = PlayerSet.both,
})

Implementation

const BoardPieces({
  super.key,
  required this.pieceSet,
  required this.state,
  this.size = BoardSize.standard,
  this.draggable = true,
  this.animatePieces = true,
  this.animationDuration = Squares.defaultAnimationDuration,
  this.animationCurve = Squares.defaultAnimationCurve,
  this.onTap,
  this.onDragStarted,
  this.onDragCancelled,
  this.onDragEnd,
  this.ignoreGestures = false,
  this.piecePadding = 0.0,
  this.dragPermissions = PlayerSet.both,
});