Move class
Represents a move necessary to solve the cube using Herbert Kociemba's two-phase algorithm.
Constructors
Properties
- color → Color
-
The color of the cube face.
final
- double → bool
-
The double turn.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverted → bool
-
The direction of the move.
final
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
inverse(
) → Move - Inverts the Move.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- bottom → const Move
- Bottom clockwise move.
- bottomDouble → const Move
- Bottom double turn move.
- bottomInv → const Move
- Bottom counterclockwise move.
- down → const Move
- Down clockwise move.
- downDouble → const Move
- Double double turn move.
- downInv → const Move
- Down counterclockwise move.
- front → const Move
- Front clockwise move.
- frontDouble → const Move
- Front double turn move.
- frontInv → const Move
- Front counterclockwise move.
- left → const Move
- Left clockwise move.
- leftDouble → const Move
- Left double turn move.
- leftInv → const Move
- Left counterclockwise move.
- right → const Move
- Right clockwise move.
- rightDouble → const Move
- Right double turn move.
- rightInv → const Move
- Right counterclockwise move.
- up → const Move
- Up clockwise move.
- upDouble → const Move
- Up double turn move.
- upInv → const Move
- Up counterclockwise move.
-
values
→ const List<
Move> - The available moves.