Position class
Represents the cartesian position of a cell on a typical Sudoku 9x9 grid X and Y are row and column respectfully.
SEG0 SEG1 SEG2
0 1 2 3 4 5 6 7 8
-------------------------
0 | 0 0 0 | 0 0 0 | 0 0 0 |
SEG0 1 | 0 0 0 | 0 0 0 | 0 0 0 | 2 | 0 0 0 | 0 0 0 | 0 0 0 | ------------------------- 3 | 0 0 0 | 0 0 0 | 0 0 0 | SEG1 4 | 0 0 0 | 0 0 0 | 0 0 0 | 5 | 0 0 0 | 0 0 0 | 0 0 0 | ------------------------- 6 | 0 0 0 | 0 0 0 | 0 0 0 | SEG2 7 | 0 0 0 | 0 0 0 | 0 0 0 | 8 | 0 0 0 | 0 0 0 | 0 0 0 | -------------------------
Constructors
Properties
Methods
-
isValid(
) → bool - Determine if position is valid via simple range check of index
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited