Square class

Represents a square on the chessboard.

Constructors

Square(int row, int col)
Constructs a new Square for row and col.
const
Square.fromICString(String s)
Constructs new Square that corresponds to ICString representation s.

Properties

col int
Index of column, between 0 and Board.size - 1.
final
hashCode int
The hash code for this object.
no setteroverride
row int
Index of row, between 0 and Board.size - 1.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toICString() String
Returns String representaion of current square.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object? other) bool
The equality operator.
override