of static method

FlexCorePalette of(
  1. int argb, [
  2. FlexPaletteType paletteType = FlexPaletteType.common
])

Create a FlexCorePalette from a given int ARGB color value.

Implementation

static FlexCorePalette of(
  int argb, [
  FlexPaletteType paletteType = FlexPaletteType.common,
]) {
  final Cam16 cam = Cam16.fromInt(argb);
  return FlexCorePalette.fromHueChroma(cam.hue, cam.chroma, paletteType);
}