Solution class

Represents a list of Moves to solve the Cube.

Constructors

Solution({Algorithm algorithm = Algorithm.empty, Duration elapsedTime = const Duration()})
Creates a Solution instance.
const

Properties

algorithm Algorithm
The moves of the Solution.
final
elapsedTime Duration
Elapsed time to find the Solution.
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Returns true if there are no moves in the Solution.
no setter
isNotEmpty bool
Returns true if there is at least one move in the Solution.
no setter
length int
The number of moves of the Solution.
no setter
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

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

empty → const Solution
Empty solution.