BaseDigitFormInput constructor
const
BaseDigitFormInput({
- Key? key,
- required TextEditingController controller,
- bool isDisabled = false,
- bool readOnly = false,
- bool isRequired = false,
- String? initialValue,
- String? label,
- bool? info,
- String? infoText,
- IconData? suffixIcon,
- bool charCount = false,
- String? innerLabel,
- String? helpText,
- void onError()?,
- TooltipTriggerMode triggerMode = TooltipTriggerMode.tap,
- bool preferToolTipBelow = false,
- String? suffixText,
- String? prefixText,
- void onSuffixTap()?,
- int minLine = 1,
- int maxLine = 1,
- double height = Default.height,
- int step = 1,
- int minValue = 0,
- int maxValue = 100,
- bool? showCurser,
- double width = Default.mobileInputWidth,
- void onChange()?,
- TextInputType keyboardType = TextInputType.text,
- List<
Validator> ? validations, - DateTime? firstDate,
- DateTime? initialDate,
- TextAreaScroll textAreaScroll = TextAreaScroll.none,
- DateTime? lastDate,
- void onTap()?,
- bool isEditable = true,
- bool isTextArea = false,
- IconData? toggleSuffixIcon,
- List<
TextInputFormatter> ? inputFormatters, - TextAlign textAlign = TextAlign.start,
- String? errorMessage,
- 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);