ChessboardModel class Null safety

List of each square and their states

Constructors

ChessboardModel({bool enableMoves = true, bool whiteTowardUser = true, PlayerMode playerMode = PlayerMode.any, List<SquareNotifier>? board})

Properties

enableMoves bool
if move on the board are locked
read / write
flipBoardNotifier ValueNotifier<bool>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
playerMode PlayerMode
Player mode, used by controller to allow moves by one side
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
squares List<SquareNotifier>
list of states for the squares of this board
late, final
whiteTowardUser bool
if white is toward the user
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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