PaletteColor constructor

PaletteColor(Color color, int population)

Generate a PaletteColor.

The color and population parameters must not be null.

Implementation

PaletteColor(this.color, this.population)
    : assert(color != null),
      assert(population != null);