copyWith method
Implementation
SquareModel copyWith({required Piece? squareState}) {
return SquareModel(
squarePiece: squareState,
squareName: this.squareName,
);
}
SquareModel copyWith({required Piece? squareState}) {
return SquareModel(
squarePiece: squareState,
squareName: this.squareName,
);
}