MarkdownRenderer class

Service that renders Markdown content

Constructors

MarkdownRenderer()

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

containsMarkdownSyntax(String text) → bool
Whether the content contains valid Markdown syntax
countPlainTextCharacters(String markdown) → int
Counts the characters of the plain Markdown text
enableMarkdown(ReportElement element, bool enabled) → void
Enables Markdown for an element
extractPlainText(String markdown) → String
Extracts the plain text from the Markdown content
getMarkdownConfig(ReportElement element) → Map<String, dynamic>
Returns the Markdown configuration of an element
getMarkdownData(ReportElement element) → String
Returns the Markdown data of an element
isMarkdownEnabled(ReportElement element) → bool
Whether an element has Markdown enabled
render(String data, Map<String, dynamic> config, {TextStyle? baseStyle}) → Widget
Renders Markdown content as a Widget
renderPreview(String data, {double maxHeight = 200}) → Widget
Renders a preview of the Markdown content
setMarkdownConfig(ReportElement element, Map<String, dynamic> config) → void
Sets the Markdown configuration of an element
setMarkdownData(ReportElement element, String data) → void
Sets the Markdown data of an element