ShogiBoardStyle class

A model used to paint a ShogiBoard.

Annotations

Constructors

ShogiBoardStyle({double maxSize = double.infinity, Color pieceColor = BoardColors.black, Color promotedPieceColor = BoardColors.red, Color cellColor = Colors.transparent, Color borderColor = BoardColors.gray, bool usesJapanese = true, bool showCoordIndicators = true, CoordIndicatorType coordIndicatorType = CoordIndicatorType.japanese})
const

Properties

borderColor Color
The color of each cell's border.
final
cellColor Color
The color of each cell on the board.
final
coordIndicatorType CoordIndicatorType
The type of coordinate indicators show. Defaults to CoordIndicatorType.japanese.
final
hashCode int
The hash code for this object.
no setterinherited
maxSize double
The maximum size of the board
final
pieceColor Color
The color of each standard piece on the board.
final
promotedPieceColor Color
The color of each promoted piece on the board.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCoordIndicators bool
Whether coordinate indicators (on top and right of board) should be shown. Defaults to true.
final
usesJapanese bool
Whether japanese characters (i.e. 玉) or latin letters (i.e. K) should be used. Defaults to true.
final

Methods

copyWith({double? maxSize, Color? pieceColor, Color? promotedPieceColor, Color? cellColor, Color? borderColor, bool? usesJapanese, bool? showCoordIndicators, CoordIndicatorType? coordIndicatorType}) ShogiBoardStyle
Creates a copy of this ShogiBoardStyle but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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