MdcHtmlRenderer class final

Converts an immutable MDC document into semantic HtmlNode values.

Constructors

MdcHtmlRenderer({Iterable<MdcHtmlComponent> components = const <MdcHtmlComponent>[], MdcUriPolicy uriPolicy = const MdcUriPolicy(), MdcHtmlComponentBuilder? unknownComponent})
Creates a standalone renderer with explicit components.
factory
MdcHtmlRenderer.fromApp(AppContext app, {MdcUriPolicy uriPolicy = const MdcUriPolicy(), MdcHtmlComponentBuilder? unknownComponent})
Creates a renderer from components installed in app.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unknownComponent → MdcHtmlComponentBuilder?
Optional renderer for component names absent from components.
final
uriPolicy → MdcUriPolicy
The URI policy applied to links and images.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(MdcDocument document) → HtmlFragment
Renders document as a transparent HTML fragment.
toString() → String
A string representation of this object.
inherited

Operators

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