ColorPalette.empty constructor

ColorPalette.empty({
  1. bool unique = false,
})

Returns a ColorPalette with an empty list of colors.

Implementation

factory ColorPalette.empty({bool unique = false}) {
  return ColorPalette(unique ? UniqueList<ColorModel>() : <ColorModel>[]);
}