copyWith method
Implementation
BoardState copyWith({
List<String>? board,
int? player,
int? orientation,
int? lastFrom,
int? lastTo,
int? checkSquare,
}) {
return BoardState(
board: board ?? this.board,
player: player ?? this.player,
orientation: orientation ?? this.orientation,
lastFrom: lastFrom ?? this.lastFrom,
lastTo: lastTo ?? this.lastTo,
checkSquare: checkSquare ?? this.checkSquare,
);
}