copyWith abstract method
Creates a copy of this position with some fields changed.
Implementation
Position copyWith({
Board? board,
Pockets? pockets,
Side? turn,
Castles? castles,
Square? epSquare,
int? halfmoves,
int? fullmoves,
(int, int)? remainingChecks,
});