Move constructor

const Move(
  1. Color color, {
  2. bool inverted = false,
  3. bool double = false,
})

Creates a Move instance of a cube face color, and if the turn is inverted or double.

Implementation

const Move(
  this.color, {
  this.inverted = false,
  this.double = false,
}) : assert(!inverted || !double);