CDKFieldNumeric constructor

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

Implementation

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