ColorPalette constructor

const ColorPalette(
  1. List<ColorModel> colors
)

Wraps a list of ColorModels with additional getters and methods; with constructors for generating new color palettes, as well as methods and operators for modifying and extracting colors from the palette.

Color can be used interchangeably with ColorModels by all relevant methods and constructors.

Implementation

const ColorPalette(this.colors) : super(colors);