BoardState constructor

BoardState({
  1. required List<String> board,
  2. int player = WHITE,
  3. int? orientation,
  4. int? lastFrom,
  5. int? lastTo,
  6. int? checkSquare,
})

Implementation

BoardState({
  required this.board,
  this.player = WHITE,
  int? orientation,
  this.lastFrom,
  this.lastTo,
  this.checkSquare,
}) {
  this.orientation = orientation ?? player;
}