MarkdownEditor constructor

MarkdownEditor({
  1. String title = 'Markdown',
  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. bool showSaveStatus = true,
  25. String cleanLabel = 'saved',
  26. String dirtyLabel = 'modified',
  27. int indentWidth = 2,
  28. bool showPreview = true,
  29. String previewTitle = 'Preview',
  30. int previewHeight = 10,
  31. bool previewWrap = true,
  32. ScrollController? previewController,
  33. bool showPreviewScrollbar = true,
  34. int? previewMaxWidth,
  35. AnsiRendererOptions? markdownOptions,
  36. Key? key,
})

Implementation

MarkdownEditor({
  this.title = 'Markdown',
  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.showSaveStatus = true,
  this.cleanLabel = 'saved',
  this.dirtyLabel = 'modified',
  this.indentWidth = 2,
  this.showPreview = true,
  this.previewTitle = 'Preview',
  this.previewHeight = 10,
  this.previewWrap = true,
  this.previewController,
  this.showPreviewScrollbar = true,
  this.previewMaxWidth,
  this.markdownOptions,
  super.key,
});