TextAreaModel constructor
TextAreaModel({
- String prompt = '│ ',
- String placeholder = '',
- bool showLineNumbers = true,
- int charLimit = 0,
- bool softWrap = true,
- int width = 0,
- int height = 6,
- bool useVirtualCursor = true,
- TextAreaKeyMap? keyMap,
- CursorModel? cursor,
- TextAreaStyles? styles,
Implementation
TextAreaModel({
this.prompt = '│ ',
this.placeholder = '',
this.showLineNumbers = true,
this.charLimit = 0,
this.softWrap = true,
int width = 0,
int height = 6,
this.useVirtualCursor = true,
TextAreaKeyMap? keyMap,
CursorModel? cursor,
TextAreaStyles? styles,
}) : keyMap = keyMap ?? TextAreaKeyMap(),
cursor = cursor ?? CursorModel(),
styles = styles ?? defaultTextAreaStyles(),
_width = width,
_height = height {
_lines = [[]];
_updateVirtualCursorStyle();
}