CustomTextField constructor
CustomTextField({
- required String? hintText,
- String? initialValue,
- TextEditingController? textController,
- TextInputType inputType = TextInputType.text,
- Widget? prefixIcon,
- Widget? suffixIcon,
- bool obscureText = false,
- bool enabled = true,
- bool readOnly = false,
- int? maxLines,
- TextInputAction keyboardAction = TextInputAction.next,
- FocusNode? focusNode,
- Function? validator,
- Function? onSaved,
- Function? onTap,
- Function? onChanged,
- Function? onFieldSubmitted,
- 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,
});