MarkDownEditor class

A MarkDownEditor class that encapsulates the widgets needed for markdwon editing.

field is the MrkdownEditingField widget.

icons is the MarkdownEditorIcons widget.

preview is the MarkdownPreview widget (wrapped in StatefulBuilder).

vertical is a widget that encapsulates the field, icons, and preview in a column.

inPlace is a widget that shows only filed or preview and a switch to switch between them.

Constructors

MarkDownEditor({TextEditingController? controller, bool selectable = true})
Create a MarkDownEditor using a passed controller or create one if null.

Properties

field Widget
field is the MrkdownEditingField widget.
no setter
hashCode int
The hash code for this object.
no setterinherited
icons Widget
icons is the MarkdownEditorIcons widget.
no setter
preview Widget
preview is the MarkdownPreview widget (wrapped in StatefulBuilder).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectable bool
Whether preview should be selectable or not
final

Methods

inPlace() Widget
inPlace is a widget that shows only filed or preview and a switch to switch between them.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
vertical() Widget
vertical is a widget that encapsulates the field, icons, and preview in a column.

Operators

operator ==(Object other) bool
The equality operator.
inherited