MdcWidgetRenderer class final
Converts an immutable MdcDocument into Flutter widgets.
Constructors
-
MdcWidgetRenderer({Iterable<
MdcWidgetComponent> components = const <MdcWidgetComponent>[], MdcStyle style = const MdcStyle(), MdcUriPolicy uriPolicy = const MdcUriPolicy(), MdcLinkHandler? onLink, MdcImageBuilder? imageBuilder}) -
Creates a Flutter renderer with explicit
components. -
MdcWidgetRenderer.fromApp(AppContext app, {Iterable<
MdcWidgetComponent> components = const <MdcWidgetComponent>[], MdcStyle style = const MdcStyle(), MdcUriPolicy uriPolicy = const MdcUriPolicy(), MdcLinkHandler? onLink, MdcImageBuilder? imageBuilder}) -
Creates a renderer from module components and optional local overrides.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageBuilder → MdcImageBuilder?
-
Optional image builder.
final
- onLink → MdcLinkHandler?
-
Optional link activation handler.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → MdcStyle
-
Visual overrides for standard Markdown elements.
final
- uriPolicy → MdcUriPolicy
-
URI policy shared with semantic HTML rendering.
final
Methods
-
buildBlocks(
BuildContext context, MdcDocument document) → List< Widget> - Builds all top-level blocks without adding a scrolling container.
-
buildNode(
BuildContext context, MdcNode node) → Widget - Builds one document node for custom layouts and lazy lists.
-
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