correctOrientation static method

List<Color> correctOrientation(
  1. List<Color> definition
)

Corrects the Cube orientation from the your definition colors U..R..F..D..L..B.

Implementation

static List<Color> correctOrientation(List<Color> definition) {
  return _findRotation(definition).fold(definition, rotate);
}