CustomTextFormField constructor

const CustomTextFormField({
  1. Key? key,
  2. TextEditingCController? controller,
  3. bool readonly = false,
  4. bool darkMode = false,
  5. bool obscureText = false,
  6. String? initValue,
  7. String? label,
  8. void onSubmit(
    1. TextEditingCController txt
    )?,
  9. bool scannable = false,
  10. IconData? suffixIcon,
  11. void onSuffixIconTab(
    1. TextEditingCController txt
    )?,
  12. TextInputType? keyboardType,
  13. void onSaved(
    1. String? value
    )?,
  14. bool required = false,
  15. String? validator(
    1. String value
    )?,
  16. bool multiLine = false,
  17. dynamic onChanged(
    1. String value
    )?,
})

Implementation

const CustomTextFormField({
  super.key,
  this.controller,
  this.readonly = false,
  this.darkMode = false,
  this.obscureText = false,
  this.initValue,
  this.label,
  this.onSubmit,
  this.scannable = false,
  this.suffixIcon,
  this.onSuffixIconTab,
  this.keyboardType,
  this.onSaved,
  this.required = false,
  this.validator,
  this.multiLine = false,
  this.onChanged,
});