BoardTheme class

Describes a colour scheme to be used by a Board.

Constructors

BoardTheme({required Color lightSquare, required Color darkSquare, required Color check, required Color checkmate, required Color previous, required Color selected, required Color premove})
const

Properties

check Color
Colour for squares in check.
final
checkmate Color
Colour for squares in checkmate.
final
darkSquare Color
Base colour of the dark squares.
final
hashCode int
The hash code for this object.
no setterinherited
lightSquare Color
Base colour of the light squares.
final
premove Color
Colour for committed premoves.
final
previous Color
Colour for previous move highlights.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected Color
Colour for selected pieces, and possible move decorations.
final

Methods

copyWith({Color? lightSquare, Color? darkSquare, Color? check, Color? checkmate, Color? previous, Color? selected, Color? premove}) BoardTheme
highlight(HighlightType type) Color
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

blueGrey → const BoardTheme
A more modern blueish greyish theme.
brown → const BoardTheme
Brown. Classic. Looks like chess.
dart → const BoardTheme
A tribute.
pink → const BoardTheme
Eye pain theme.