ChartColorPalette constructor

const ChartColorPalette({
  1. Key? key,
  2. required Color? value,
  3. required ValueChanged<Color?> onChanged,
  4. required String keyPrefix,
  5. bool allowClear = true,
  6. double presetOpacity = 1,
  7. Color? customColorFallback,
})

Implementation

const ChartColorPalette({
  super.key,
  required this.value,
  required this.onChanged,
  required this.keyPrefix,
  this.allowClear = true,
  this.presetOpacity = 1,
  this.customColorFallback,
}) : assert(presetOpacity >= 0 && presetOpacity <= 1);