SoftSaaSNumberInput constructor

const SoftSaaSNumberInput({
  1. Key? key,
  2. double? value,
  3. ValueChanged<double?>? onChanged,
  4. ValueChanged<double?>? onDragUpdate,
  5. VoidCallback? onDragEnd,
  6. bool readOnly = false,
  7. String? label,
  8. TextAlign labelAlignment = TextAlign.left,
  9. FocusNode? focusNode,
  10. bool showLabel = false,
  11. String? prefix,
  12. String? suffix,
  13. double? min,
  14. double? max,
  15. double step = 1.0,
  16. double dragSensitivity = 1.0,
  17. double? width,
  18. int? decimalPlaces,
  19. bool allowNegative = true,
  20. bool showStepper = true,
  21. SoftSaaSNumberInputSize size = SoftSaaSNumberInputSize.medium,
  22. bool enabled = true,
  23. bool elevated = false,
  24. List<double>? presets,
  25. String presetLabel(
    1. double
    )?,
})

Implementation

const SoftSaaSNumberInput({
  super.key,
  this.value,
  this.onChanged,
  this.onDragUpdate,
  this.onDragEnd,
  this.readOnly = false,
  this.label,
  this.labelAlignment = TextAlign.left,
  this.focusNode,
  this.showLabel = false,
  this.prefix,
  this.suffix,
  this.min,
  this.max,
  this.step = 1.0,
  this.dragSensitivity = 1.0,
  this.width,
  this.decimalPlaces,
  this.allowNegative = true,
  this.showStepper = true,
  this.size = SoftSaaSNumberInputSize.medium,
  this.enabled = true,
  this.elevated = false,
  this.presets,
  this.presetLabel,
});