HighlightTheme class
A theme that specifies a number of widget builder functions, used to define how various highlights are drawn on the board.
Constructors
- HighlightTheme({required HighlightBuilder empty, required HighlightBuilder piece})
-
const
Properties
- empty → HighlightBuilder
-
Used to highlight empty squares that the currently selected piece could
move to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- piece → HighlightBuilder
-
Used to highlight occupied squares that the currently selected piece could
move to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{HighlightBuilder? empty, HighlightBuilder? piece}) → HighlightTheme -
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
Static Properties
- basic ↔ HighlightTheme
-
The default
HighlightTheme
. Circular dots for empty squares.getter/setter pair - dot ↔ HighlightBuilder
-
Builds a circular dot in the centre of the square, with a diameter equal
to 1/3 of the width of the square.
getter/setter pair
- roundedOutline ↔ HighlightBuilder
-
Builds a rounded outline border, 1/16th the width of the square.
getter/setter pair
- square ↔ HighlightTheme
-
A variant
HighlightTheme
with square dots for empty squares.getter/setter pair - squareDot ↔ HighlightBuilder
-
Builds a square dot in the centre of the square, with a width equal
to 1/3 of the width of the square.
getter/setter pair
- squareOutline ↔ HighlightBuilder
-
Builds a square outline border, 1/16th the width of the square.
getter/setter pair