TextEditor constructor
TextEditor({
- String title = 'Editor',
- TextAreaController? controller,
- TextAreaModel? model,
- FocusController? focusController,
- String? focusId,
- bool autofocus = false,
- bool enabled = true,
- String? prompt,
- String? placeholder,
- int? width,
- int height = 8,
- bool showLineNumbers = true,
- bool softWrap = true,
- bool? useVirtualCursor,
- TextAreaKeyMap? keyMap,
- TextAreaStyles? styles,
- CursorModel? cursor,
- bool showHelpBar = true,
- bool helpExpanded = false,
- Widget? headerTrailing,
- TextChangedCallback? onChanged,
- ValueCmdCallback<
String> ? onSave, - ValueCmdCallback<
KeyMsg> ? onKey, - List<
KeyBinding> extraHelpBindings = const [], - bool showSaveStatus = true,
- String cleanLabel = 'saved',
- String dirtyLabel = 'modified',
- int indentWidth = 2,
- Key? key,
Implementation
TextEditor({
this.title = 'Editor',
this.controller,
this.model,
this.focusController,
this.focusId,
this.autofocus = false,
this.enabled = true,
this.prompt,
this.placeholder,
this.width,
this.height = 8,
this.showLineNumbers = true,
this.softWrap = true,
this.useVirtualCursor,
this.keyMap,
this.styles,
this.cursor,
this.showHelpBar = true,
this.helpExpanded = false,
this.headerTrailing,
this.footer,
this.onChanged,
this.onSave,
this.onKey,
this.extraHelpBindings = const [],
this.showSaveStatus = true,
this.cleanLabel = 'saved',
this.dirtyLabel = 'modified',
this.indentWidth = 2,
super.key,
});