SliderPicker constructor
const
SliderPicker({
- required double value,
- required ValueChanged<
double> onChanged, - double min = 0.0,
- double max = 1.0,
- List<
Color> ? colors, - Widget? child,
- BorderRadius? borderRadius = _SliderPickerState._defaultBorderRadius,
- Border? border = const Border.fromBorderSide(BorderSide(color: Colors.grey)),
- double height = 40,
- Key? key,
Implementation
const SliderPicker({
required this.value,
required this.onChanged,
this.min = 0.0,
this.max = 1.0,
this.colors,
this.child,
this.borderRadius = _SliderPickerState._defaultBorderRadius,
this.border = const Border.fromBorderSide(BorderSide(color: Colors.grey)),
this.height = 40,
Key? key,
}) : assert(value >= min && value <= max),
super(key: key);