BoardTargets constructor

const BoardTargets({
  1. Key? key,
  2. BoardSize size = BoardSize.standard,
  3. int orientation = Squares.white,
  4. dynamic onTap(
    1. int
    )?,
  5. bool validateDrag(
    1. PartialMove,
    2. int
    )?,
  6. void acceptDrag(
    1. PartialMove,
    2. int
    )?,
  7. void onDragLeave(
    1. PartialMove,
    2. int
    )?,
})

Implementation

const BoardTargets({
  super.key,
  this.size = BoardSize.standard,
  this.orientation = Squares.white,
  this.onTap,
  this.validateDrag,
  this.acceptDrag,
  this.onDragLeave,
});