CDKFieldNumeric constructor
const
CDKFieldNumeric(- {Key? key,
- double? textSize = 12,
- double value = 0.0,
- double min = -double.infinity,
- double max = double.infinity,
- double increment = double.infinity,
- int decimals = 1,
- bool enabled = true,
- String units = "",
- dynamic onValueChanged(
- double
)?,
- dynamic onTextChanged(
- 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);