CustomTextFormField constructor
const
CustomTextFormField({
- Key? key,
- required String label,
- required String formControlName,
- String? hint,
- Widget? suffix,
- int minLines = 1,
- int maxLines = 1,
- ControlValueAccessor<
dynamic, String> ? valueAccessor, - int? maxLength,
- VoidCallback? onTap,
- FocusNode? focusNode,
- Map<
String, String Function(Object control)> ? validationMessages, - Widget? suffixIcon,
- TextInputType keyboardType = TextInputType.text,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- bool obscureText = false,
- bool isRequired = false,
- bool readOnly = false,
- void onChanged(
- FormControl
- int? minLength,
- List<
FilteringTextInputFormatter> ? inputFormatter, - Widget? prefixIcon,
- String? prefixText,
- String? hintText,
- TextStyle? labelStyle,
- EdgeInsets? padding,
Implementation
const CustomTextFormField(
{super.key,
required this.label,
required this.formControlName,
this.hint,
this.suffix,
this.minLines = 1,
this.maxLines = 1,
this.valueAccessor,
this.maxLength,
this.onTap,
this.focusNode,
this.validationMessages,
this.suffixIcon,
this.keyboardType = TextInputType.text,
this.textCapitalization = TextCapitalization.sentences,
this.obscureText = false,
this.isRequired = false,
this.readOnly = false,
this.onChanged,
this.minLength,
this.inputFormatter,
this.prefixIcon,
this.prefixText,
this.hintText,
this.labelStyle,
this.padding});