withPromoted method

Board withPromoted(
  1. SquareSet promoted
)

Returns a new board with a new promoted square set.

Implementation

Board withPromoted(SquareSet promoted) {
  return copyWith(promoted: promoted);
}