MarkerTheme class

A theme that specifies a number of widget builder functions, used to define how various markers are drawn on the board.

Constructors

MarkerTheme({required MarkerBuilder empty, required MarkerBuilder piece})
const

Properties

empty MarkerBuilder
Used to mark empty squares that the currently selected piece could move to.
final
hashCode int
The hash code for this object.
no setterinherited
piece MarkerBuilder
Used to mark 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({MarkerBuilder? empty, MarkerBuilder? piece}) MarkerTheme
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 MarkerTheme
The default MarkerTheme. Circular dots for empty squares.
getter/setter pair
dot MarkerBuilder
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 MarkerBuilder
Builds a rounded outline border, 1/16th the width of the square.
getter/setter pair
square MarkerTheme
A variant MarkerTheme with square dots for empty squares.
getter/setter pair
squareDot MarkerBuilder
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 MarkerBuilder
Builds a square outline border, 1/16th the width of the square.
getter/setter pair

Static Methods

corners([double scale = 0.2]) MarkerBuilder
cross([double scale = 0.75]) MarkerBuilder