BoardPieces constructor
const
BoardPieces({
- Key? key,
- required PieceSet pieceSet,
- required BoardState state,
- BoardSize size = BoardSize.standard,
- bool draggable = true,
- bool animatePieces = true,
- Duration animationDuration = Squares.defaultAnimationDuration,
- Curve animationCurve = Squares.defaultAnimationCurve,
- void onTap()?,
- void onDragStarted()?,
- void onDragCancelled()?,
- void onDragEnd()?,
- bool ignoreGestures = false,
- double piecePadding = 0.0,
- 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,
});