FormifyTextField constructor

const FormifyTextField({
  1. Key? key,
  2. String? label,
  3. String? initialValue,
  4. FocusNode? focusNode,
  5. TextInputType? keyboardType,
  6. TextCapitalization textCapitalization = TextCapitalization.none,
  7. TextInputAction? textInputAction,
  8. bool obscureText = false,
  9. int? maxLines = 1,
  10. int? minLines,
  11. ValueChanged<String>? onChanged,
  12. GestureTapCallback? onTap,
  13. ValueChanged<String>? onFieldSubmitted,
  14. FormFieldSetter<String>? onSaved,
  15. FormFieldValidator<String>? validator,
  16. List<TextInputFormatter>? inputFormatters,
  17. bool? enabled,
  18. bool readOnly = false,
  19. AutovalidateMode? autovalidateMode,
  20. String? hintText,
  21. Widget? suffixIcon,
  22. Widget? prefixIcon,
  23. TextEditingController? controller,
  24. bool required = false,
  25. InputDecoration? inputDecoration,
  26. GlobalKey<FormFieldState>? formKey,
})

Implementation

const FormifyTextField({
  Key? key,
  this.label,
  this.initialValue,
  this.focusNode,
  this.keyboardType,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.obscureText = false,
  this.maxLines = 1,
  this.minLines,
  this.onChanged,
  this.onTap,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.inputFormatters,
  this.enabled,
  this.readOnly = false,
  this.autovalidateMode,
  this.hintText,
  this.suffixIcon,
  this.prefixIcon,
  this.controller,
  this.required = false,
  this.inputDecoration,
  this.formKey,
}) : super(key: key);