FlameMarkdown class

Helper to parse markdown strings into an AST structure provided by the markdown package, and convert that structure into an equivalent DocumentRoot from Flame.

This allows for the creation of rich-text components on Flame using a very simple and easy-to-write markdown syntax.

Note more advanced markdown features are not supported, such as tables, code blocks, images, and inline HTML. It is also possible that some otherwise valid markdown nestings of block and inline-type elements are not currently supported.

Constructors

FlameMarkdown()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

toDocument(String markdown, {Document? document}) → DocumentRoot
Converts a markdown string to a DocumentRoot from Flame.