DoubleSliderField constructor

DoubleSliderField({
  1. required String name,
  2. double? initialValue = 0,
  3. required double min,
  4. required double max,
  5. int? divisions,
  6. @Deprecated('Fields should not be aware of their context') void onChanged(
    1. BuildContext context,
    2. 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 ?? ''),
        ),
      );