BaseDigitFormInput constructor

const BaseDigitFormInput({
  1. Key? key,
  2. required TextEditingController controller,
  3. bool isDisabled = false,
  4. bool readOnly = false,
  5. bool isRequired = false,
  6. String? initialValue,
  7. String? label,
  8. bool? info,
  9. String? infoText,
  10. IconData? suffixIcon,
  11. bool charCount = false,
  12. String? innerLabel,
  13. String? helpText,
  14. void onError(
    1. String?
    )?,
  15. TooltipTriggerMode triggerMode = TooltipTriggerMode.tap,
  16. bool preferToolTipBelow = false,
  17. String? suffixText,
  18. String? prefixText,
  19. void onSuffixTap(
    1. String
    )?,
  20. int minLine = 1,
  21. int maxLine = 1,
  22. double height = Default.height,
  23. int step = 1,
  24. int minValue = 0,
  25. int maxValue = 100,
  26. bool? showCurser,
  27. double width = Default.mobileInputWidth,
  28. void onChange(
    1. String
    )?,
  29. TextInputType keyboardType = TextInputType.text,
  30. List<Validator>? validations,
  31. DateTime? firstDate,
  32. DateTime? initialDate,
  33. TextAreaScroll textAreaScroll = TextAreaScroll.none,
  34. DateTime? lastDate,
  35. void onTap()?,
  36. bool isEditable = true,
  37. bool isTextArea = false,
  38. IconData? toggleSuffixIcon,
  39. List<TextInputFormatter>? inputFormatters,
  40. TextAlign textAlign = TextAlign.start,
  41. String? errorMessage,
  42. bool capitalizeFirstLetter = true,
})

Implementation

const BaseDigitFormInput({
  Key? key,
  required this.controller,
  this.isDisabled = false,
  this.readOnly = false,
  this.isRequired = false,
  this.initialValue,
  this.label,
  this.info,
  this.infoText,
  this.suffixIcon,
  this.charCount = false,
  this.innerLabel,
  this.helpText,
  this.onError,
  this.triggerMode = TooltipTriggerMode.tap,
  this.preferToolTipBelow = false,
  this.suffixText,
  this.prefixText,
  this.onSuffixTap,
  this.minLine = 1,
  this.maxLine = 1,
  this.height = Default.height,
  this.step = 1,
  this.minValue = 0,
  this.maxValue = 100,
  this.showCurser,
  this.width = Default.mobileInputWidth,
  this.onChange,
  this.keyboardType = TextInputType.text,
  this.validations,
  this.firstDate,
  this.initialDate,
  this.textAreaScroll = TextAreaScroll.none,
  this.lastDate,
  this.onTap,
  this.isEditable = true,
  this.isTextArea = false,
  this.toggleSuffixIcon,
  this.inputFormatters,
  this.textAlign = TextAlign.start,
  this.errorMessage,
  this.capitalizeFirstLetter = true,
}) : super(key: key);