NiceGradientPicker constructor
const
NiceGradientPicker({ - Key? key,
- NiceGradientValue value = const NiceGradientValue(stops: [NiceGradientStop(color: Color(0xFF1976D2), position: 0), NiceGradientStop(color: Color(0xFFE91E63), position: 1)]),
- void onChange(
- NiceGradientValue value
)?,
- bool showCssOutput = true,
- int maxStops = 10,
- String? label,
- 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,
});