DoubleSliderField constructor
DoubleSliderField({
- required String name,
- double? initialValue = 0,
- required double min,
- required double max,
- int? divisions,
- @Deprecated('Fields should not be aware of their context') void onChanged(
- BuildContext context,
- double? value
Implementation
DoubleSliderField({
required super.name,
super.initialValue = 0,
required super.min,
required super.max,
this.divisions,
@Deprecated('Fields should not be aware of their context') super.onChanged,
}) : super(
type: FieldType.doubleSlider,
codec: FieldCodec(
toParam: (value) => value.toString(),
toValue: (param) => double.tryParse(param ?? ''),
),
);