palette_generator library Null safety

Classes

EncodedImage
A description of an encoded image.
PaletteColor
A color palette color generated by the PaletteGenerator.
PaletteGenerator
A class to extract prominent colors from an image for use as user interface colors.
PaletteTarget
A class which allows custom selection of colors when a PaletteGenerator is generated.

Functions

avoidRedBlackWhitePaletteFilter(HSLColor color) bool
A basic PaletteFilter, which rejects colors near black, white and low saturation red.

Typedefs

PaletteFilter = bool Function(HSLColor color)
Hook to allow clients to be able filter colors from selected in a PaletteGenerator. Returns true if the color is allowed.