TextInputModel constructor
TextInputModel({
- String prompt = '> ',
- String placeholder = '',
- EchoMode echoMode = EchoMode.normal,
- String echoCharacter = '*',
- int charLimit = 0,
- int width = 0,
- bool showSuggestions = false,
- bool useVirtualCursor = true,
- TextInputKeyMap? keyMap,
- CursorModel? cursor,
- ValidateFunc? validate,
- TextInputStyles? styles,
Creates a new text input model.
Implementation
TextInputModel({
this.prompt = '> ',
this.placeholder = '',
this.echoMode = EchoMode.normal,
this.echoCharacter = '*',
this.charLimit = 0,
this.width = 0,
this.showSuggestions = false,
this.useVirtualCursor = true,
TextInputKeyMap? keyMap,
CursorModel? cursor,
this.validate,
TextInputStyles? styles,
}) : keyMap = keyMap ?? TextInputKeyMap(),
cursor = cursor ?? CursorModel(),
styles = styles ?? defaultTextInputStyles() {
_updateVirtualCursorStyle();
}