TextEditor constructor

TextEditor({
  1. String title = 'Editor',
  2. TextAreaController? controller,
  3. TextAreaModel? model,
  4. FocusController? focusController,
  5. String? focusId,
  6. bool autofocus = false,
  7. bool enabled = true,
  8. String? prompt,
  9. String? placeholder,
  10. int? width,
  11. int height = 8,
  12. bool showLineNumbers = true,
  13. bool softWrap = true,
  14. bool? useVirtualCursor,
  15. TextAreaKeyMap? keyMap,
  16. TextAreaStyles? styles,
  17. CursorModel? cursor,
  18. bool showHelpBar = true,
  19. bool helpExpanded = false,
  20. Widget? headerTrailing,
  21. Widget? footer,
  22. TextChangedCallback? onChanged,
  23. ValueCmdCallback<String>? onSave,
  24. ValueCmdCallback<KeyMsg>? onKey,
  25. List<KeyBinding> extraHelpBindings = const [],
  26. bool showSaveStatus = true,
  27. String cleanLabel = 'saved',
  28. String dirtyLabel = 'modified',
  29. int indentWidth = 2,
  30. 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,
});