copyWith method
ChessBoardStyle
copyWith({})
Implementation
ChessBoardStyle copyWith({
Widget Function(ChessPiece)? getPieceWidget,
Widget Function(
bool dark, Point<int>, Set<ChessSquareRenderingDetails> details)?
getSquareWidget,
Widget Function(Point<int>)? getPossibleCaptureDecor,
Widget Function(Point<int>)? getPossibleMoveDecor,
Widget Function(Point<int>)? getKingInCheckDecor,
TextStyle? whiteSquareTextStyle,
TextStyle? blackSquareTextStyle,
bool? showRankAndFileLabels,
}) {
return ChessBoardStyle(
getPieceWidget: getPieceWidget ?? this.getPieceWidget,
getSquareWidget: getSquareWidget ?? this.getSquareWidget,
getPossibleCaptureDecor:
getPossibleCaptureDecor ?? this.getPossibleCaptureDecor,
getPossibleMoveDecor: getPossibleMoveDecor ?? this.getPossibleMoveDecor,
getKingInCheckDecor: getKingInCheckDecor ?? this.getKingInCheckDecor,
whiteSquareTextStyle: whiteSquareTextStyle ?? this.whiteSquareTextStyle,
blackSquareTextStyle: blackSquareTextStyle ?? this.blackSquareTextStyle,
showRankAndFileLabels:
showRankAndFileLabels ?? this.showRankAndFileLabels);
}