DraftModeUIField constructor

const DraftModeUIField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required FocusNode focusNode,
  4. required ValueChanged<String> onChanged,
  5. String? label,
  6. String? placeholder,
  7. bool obscureText = false,
  8. bool obscureEye = false,
  9. TextInputType? keyboardType,
  10. List<TextInputFormatter>? inputFormatters,
  11. Widget? prefix,
  12. Widget? suffix,
  13. bool enabled = true,
  14. bool autocorrect = false,
  15. int? lines,
  16. int? maxLength,
  17. String? errorText,
  18. bool showError = false,
})

Implementation

const DraftModeUIField({
  super.key,
  required this.controller,
  required this.focusNode,
  required this.onChanged,
  this.label,
  this.placeholder,
  this.obscureText = false,
  this.obscureEye = false,
  this.keyboardType,
  this.inputFormatters,
  this.prefix,
  this.suffix,
  this.enabled = true,
  this.autocorrect = false,
  this.lines,
  this.maxLength,
  this.errorText,
  this.showError = false,
});