MarkdownEditor constructor
MarkdownEditor({
- String title = 'Markdown',
- 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, - bool showSaveStatus = true,
- String cleanLabel = 'saved',
- String dirtyLabel = 'modified',
- int indentWidth = 2,
- bool showPreview = true,
- String previewTitle = 'Preview',
- int previewHeight = 10,
- bool previewWrap = true,
- ScrollController? previewController,
- bool showPreviewScrollbar = true,
- int? previewMaxWidth,
- AnsiRendererOptions? markdownOptions,
- 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,
});