TextField constructor

TextField({
  1. TextInputModel? model,
  2. TextFieldController? controller,
  3. String? prompt,
  4. String? placeholder,
  5. int? width,
  6. EchoMode? echoMode,
  7. String? echoCharacter,
  8. int? charLimit,
  9. bool? showSuggestions,
  10. List<String>? suggestions,
  11. bool? collapseLargePaste,
  12. int? collapsedPasteMinChars,
  13. int? collapsedPasteMinLines,
  14. bool? useVirtualCursor,
  15. TextInputStyles? styles,
  16. TextInputKeyMap? keyMap,
  17. CursorModel? cursor,
  18. TextChangedCallback? onChanged,
  19. FocusController? focusController,
  20. String? focusId,
  21. bool autofocus = false,
  22. bool enabled = true,
  23. bool multiline = false,
  24. int maxLines = 0,
  25. int mouseXOffset = 0,
  26. String? zoneId,
  27. Key? key,
})

Implementation

TextField({
  this.model,
  this.controller,
  this.prompt,
  this.placeholder,
  this.width,
  this.echoMode,
  this.echoCharacter,
  this.charLimit,
  this.showSuggestions,
  this.suggestions,
  this.collapseLargePaste,
  this.collapsedPasteMinChars,
  this.collapsedPasteMinLines,
  this.useVirtualCursor,
  this.styles,
  this.keyMap,
  this.cursor,
  this.onChanged,
  this.focusController,
  this.focusId,
  this.autofocus = false,
  this.enabled = true,
  this.multiline = false,
  this.maxLines = 0,
  this.mouseXOffset = 0,
  this.zoneId,
  super.key,
});