ChessBoardStyle class

Constructors

ChessBoardStyle({required Widget getPieceWidget(ChessPiece), required Widget getSquareWidget(bool dark, Point<int>, Set<ChessSquareRenderingDetails> details), required Widget getPossibleCaptureDecor(Point<int>), required Widget getPossibleMoveDecor(Point<int>), required Widget getKingInCheckDecor(Point<int>), required TextStyle whiteSquareTextStyle, required TextStyle blackSquareTextStyle, required bool showRankAndFileLabels})

Properties

blackSquareTextStyle TextStyle
final
getKingInCheckDecor Widget Function(Point<int>)
final
getPieceWidget Widget Function(ChessPiece)
final
getPossibleCaptureDecor Widget Function(Point<int>)
final
getPossibleMoveDecor Widget Function(Point<int>)
final
getSquareWidget Widget Function(bool dark, Point<int>, Set<ChessSquareRenderingDetails> details)
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showRankAndFileLabels bool
final
whiteSquareTextStyle TextStyle
final

Methods

copyWith({Widget getPieceWidget(ChessPiece)?, Widget getSquareWidget(bool dark, Point<int>, Set<ChessSquareRenderingDetails> details)?, Widget getPossibleCaptureDecor(Point<int>)?, Widget getPossibleMoveDecor(Point<int>)?, Widget getKingInCheckDecor(Point<int>)?, TextStyle? whiteSquareTextStyle, TextStyle? blackSquareTextStyle, bool? showRankAndFileLabels}) ChessBoardStyle
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withSquareSize(double size) ChessBoardStyle

Operators

operator ==(Object other) bool
The equality operator.
inherited