ChessboardModel class
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
getter/setter pair
-
flipBoardNotifier
→ ValueNotifier<
bool> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- playerMode ↔ PlayerMode
-
Player mode, used by controller to allow moves by one side
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
squares
↔ List<
SquareNotifier> -
list of states for the squares of this board
latefinal
- whiteTowardUser ↔ bool
-
if white is toward the user
getter/setter pair
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