Color enum

The names of the colors of the cube facelets.

Inheritance

Constructors

Color(String letter)
const

Values

up → const Color

Up face color.

const Color('U')

Right face color.

const Color('R')
front → const Color

Front face color.

const Color('F')
down → const Color

Down face color.

const Color('D')
left → const Color

Left face color.

const Color('L')
bottom → const Color

Bottom face color.

const Color('B')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
letter String
The letter representing this color.
final
runtimeType Type
A representation of the runtime type of the object.
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(String letter) Color
Gets the Color from a representation letter.

Constants

values → const List<Color>
A constant List of the values in this enum, in order of their declaration.