reverse method
void
reverse()
Reverses the order of the colors in the palette.
Implementation
void reverse() => colors.replaceRange(0, length, colors.reversed);
Reverses the order of the colors in the palette.
void reverse() => colors.replaceRange(0, length, colors.reversed);