CDKFieldNumericSlider constructor

const CDKFieldNumericSlider(
  1. {Key? key,
  2. double value = 0.0,
  3. double textSize = 12,
  4. double min = 0,
  5. double max = 1,
  6. double increment = double.infinity,
  7. int decimals = 1,
  8. String units = "",
  9. bool enabled = true,
  10. dynamic onValueChanged(
    1. double
    )?,
  11. dynamic onTextChanged(
    1. double
    )?}
)

Implementation

const CDKFieldNumericSlider({
  Key? key,
  this.value = 0.0,
  this.textSize = 12,
  this.min = 0,
  this.max = 1,
  this.increment = double.infinity, // If infinity, buttons are hidden
  this.decimals = 1, // Valor per defecte, sense decimals si no s'especifica
  this.units = "",
  this.enabled = true,
  this.onValueChanged,
  this.onTextChanged,
}) : super(key: key);