CustomTextField constructor

CustomTextField({
  1. required String? hintText,
  2. String? initialValue,
  3. TextEditingController? textController,
  4. TextInputType inputType = TextInputType.text,
  5. Widget? prefixIcon,
  6. Widget? suffixIcon,
  7. bool obscureText = false,
  8. bool enabled = true,
  9. bool readOnly = false,
  10. int? maxLines,
  11. TextInputAction keyboardAction = TextInputAction.next,
  12. FocusNode? focusNode,
  13. Function? validator,
  14. Function? onSaved,
  15. Function? onTap,
  16. Function? onChanged,
  17. Function? onFieldSubmitted,
  18. Function? onEditComplete,
})

Implementation

CustomTextField({
  required this.hintText,
  this.initialValue,
  this.textController,
  this.inputType = TextInputType.text,
  this.prefixIcon,
  this.suffixIcon,
  this.obscureText = false,
  this.enabled = true,
  this.readOnly = false,
  this.maxLines,
  this.keyboardAction = TextInputAction.next,
  this.focusNode,
  this.validator,
  this.onSaved,
  this.onTap,
  this.onChanged,
  this.onFieldSubmitted,
  this.onEditComplete,
});