PlayerSet class

Just a convenience class for configuring things that could apply to one player, neither or both.

Constructors

PlayerSet(bool white, bool black)
const
PlayerSet.fromPlayer(int player)
factory

Properties

black bool
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
white bool
final

Methods

forPlayer(int player) bool
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

both → const PlayerSet
neither → const PlayerSet
onlyBlack → const PlayerSet
onlyWhite → const PlayerSet