CustomTextFormField constructor

CustomTextFormField({
  1. Key? key,
  2. Image? prefix,
  3. dynamic onChanged(
    1. String
    )?,
  4. 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,
});