Marker class

Data representation of a marker on the board, to simplify building them.

Constructors

Marker({required HighlightType colour, required bool hasPiece})
const
Marker.empty(HighlightType colour)
factory
Marker.piece(HighlightType colour)
factory

Properties

colour HighlightType
The colour of the marker.
final
hashCode int
The hash code for this object.
no setterinherited
hasPiece bool
Whether the marker is for a square that has a piece on it or not.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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