reverse method

void reverse()

Reverses the order of the colors in the palette.

Implementation

void reverse() => colors.replaceRange(0, length, colors.reversed);