FastNumberField constructor

const FastNumberField({
  1. Key? key,
  2. required String labelText,
  3. int maxLength = NumberInputFormatter.safeIntegerMaxLength,
  4. Duration debounceTimeDuration = kFastDebounceTimeDuration,
  5. int maxValue = NumberInputFormatter.safeInteger,
  6. bool transformInvalidNumber = true,
  7. bool showHelperBoundaries = true,
  8. TextAlign textAlign = TextAlign.start,
  9. bool shouldDebounceTime = false,
  10. bool allowAutocorrect = false,
  11. bool acceptDecimal = true,
  12. bool isReadOnly = false,
  13. bool isEnabled = true,
  14. String? valueText,
  15. TextEditingController? textEditingController,
  16. BoxConstraints? suffixIconConstraints,
  17. VoidCallback? onEditingCompleted,
  18. String? placeholderText,
  19. ValueChanged<String>? onValueChanged,
  20. String? captionText,
  21. String? helperText,
  22. Widget? suffixIcon,
  23. String? locale,
})

Implementation

const FastNumberField({
  super.key,
  required this.labelText,
  this.maxLength = NumberInputFormatter.safeIntegerMaxLength,
  this.debounceTimeDuration = kFastDebounceTimeDuration,
  this.maxValue = NumberInputFormatter.safeInteger,
  this.transformInvalidNumber = true,
  this.showHelperBoundaries = true,
  this.textAlign = TextAlign.start,
  this.shouldDebounceTime = false,
  this.allowAutocorrect = false,
  this.acceptDecimal = true,
  this.isReadOnly = false,
  this.isEnabled = true,
  String? valueText,
  this.textEditingController,
  this.suffixIconConstraints,
  this.onEditingCompleted,
  this.placeholderText,
  this.onValueChanged,
  this.captionText,
  this.helperText,
  this.suffixIcon,
  this.locale,
}) : valueText = valueText ?? '';