NiceGradientPicker constructor

const NiceGradientPicker({
  1. Key? key,
  2. NiceGradientValue value = const NiceGradientValue(stops: [NiceGradientStop(color: Color(0xFF1976D2), position: 0), NiceGradientStop(color: Color(0xFFE91E63), position: 1)]),
  3. void onChange(
    1. NiceGradientValue value
    )?,
  4. bool showCssOutput = true,
  5. int maxStops = 10,
  6. String? label,
  7. bool disabled = false,
})

Implementation

const NiceGradientPicker({
  super.key,
  this.value = const NiceGradientValue(
    stops: [
      NiceGradientStop(color: Color(0xFF1976D2), position: 0),
      NiceGradientStop(color: Color(0xFFE91E63), position: 1),
    ],
  ),
  this.onChange,
  this.showCssOutput = true,
  this.maxStops = 10,
  this.label,
  this.disabled = false,
});