Field.slider constructor

Field.slider(
  1. String key, {
  2. String? label,
  3. double? value,
  4. FormValidator? validator,
  5. bool autofocus = false,
  6. String? dummyData,
  7. Widget? header,
  8. Widget? footer,
  9. TextStyle? titleStyle,
  10. bool? hidden = false,
  11. bool? readOnly,
  12. dynamic onChanged(
    1. dynamic value
    )?,
  13. FieldStyleSlider? style,
})

Field.slider is a constructor that helps in managing slider fields

Implementation

Field.slider(
  this.key, {
  this.label,
  double? value,
  this.validator,
  this.autofocus = false,
  this.dummyData,
  this.header,
  this.footer,
  this.titleStyle,
  this.hidden = false,
  this.readOnly,
  Function(dynamic value)? onChanged,
  FieldStyleSlider? style,
}) : _value = value,
     this.style = style ?? FieldStyleSlider() {
  setOnChanged(onChanged);
  widget = NyFormSlider.fromField(this);
}