asPalette property

MonetPalette get asPalette

Implementation

MonetPalette get asPalette {
  final Map<int, ui.Color> newSwatch = map(
    (key, value) => MapEntry(
      key,
      ui.Color(value.toLinearSrgb().toSrgb().quantize8()),
    ),
  );

  return MonetPalette(newSwatch);
}