GridOffset class
Like an Offset from Flutter, but using integers instead of doubles.
This is used to represent an offset from a position in a grid. Since the grid is represented as a 2D list, the x and y coordinates must be integers to act as indexes. Use this class to keep the rover centered in the UI.
Constructors
- GridOffset(int x, int y)
-
A const constructor.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → int
-
The X offset.
final
- y → int
-
The Y offset.
final
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