FSlider constructor
const
FSlider({
- Key? key,
- required double value,
- required ValueChanged<
double> onChanged, - double cacheValue = 0.0,
- ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - double min = 0.0,
- double max = 1.0,
- FSliderColors colors = const FSliderColors(),
Implementation
const FSlider({
Key? key,
required this.value,
required this.onChanged,
this.cacheValue = 0.0,
this.onChangeStart,
this.onChangeEnd,
this.min = 0.0,
this.max = 1.0,
this.colors = const FSliderColors(),
}) : assert(min <= max),
assert(value >= min && value <= max),
super(key: key);