palettes is a source of colors to be transformed into an immutable list.
palettes
const GradientImmut(Iterable<Palette> palettes) : super(palettes);