CustomTextFormField constructor
CustomTextFormField({
- Key? key,
- Image? prefix,
- dynamic onChanged()?,
- TextEditingController? controller,
Creates a CustomTextFormField widget.
prefix: An optional widget to be displayed as a prefix icon within the text field. This is not used in the current implementation but can be extended to add custom prefix icons.onChanged: An optional callback function that is called when the text in the field changes. It provides the current value of the text field.controller: An optional TextEditingController to control the text being edited. It allows for programmatic control of the text field's value and cursor position.
Implementation
CustomTextFormField({
super.key,
this.prefix,
this.onChanged,
this.controller,
});