TextField constructor
TextField({
- TextInputModel? model,
- TextFieldController? controller,
- String? prompt,
- String? placeholder,
- int? width,
- EchoMode? echoMode,
- String? echoCharacter,
- int? charLimit,
- bool? showSuggestions,
- List<
String> ? suggestions, - bool? collapseLargePaste,
- int? collapsedPasteMinChars,
- int? collapsedPasteMinLines,
- bool? useVirtualCursor,
- TextInputStyles? styles,
- TextInputKeyMap? keyMap,
- CursorModel? cursor,
- TextChangedCallback? onChanged,
- FocusController? focusController,
- String? focusId,
- bool autofocus = false,
- bool enabled = true,
- bool multiline = false,
- int maxLines = 0,
- int mouseXOffset = 0,
- String? zoneId,
- 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,
});