MonetPalette constructor

MonetPalette(
  1. Map<int, Color> colors
)

Creates a new MonetPalette. It's not recommended to use this constructor directly as working and ready instances are already provided by MonetColors.

Implementation

MonetPalette(this.colors)
    : assert(colors.length == 13),
      super(colors[500]!.value, colors);