CommandCaller class

It creates two lists of methods, one for the board and one for the move, and if the method name is in the list of methods, call the method.

Constructors

CommandCaller(Shape _shape)
Basic constructor, specify the shape of the board.

Properties

board Coloring
It's creating a new instance of the Coloring class.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

color(String name, List arg) bool
If the name of the function is in the _coloring map, call the function and return the result
move(String name, List<int> arg) bool
If the name of the move is in the _directions map, call the function associated with that name
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