Builder class

Builds the rendering tree by visiting the parsed nodes. The flavor maps the element tags to Node producers. For every element in the parsed tree the Node producer returns a node of the rendering tree.

Constructors

Builder(Map<String, Node Function()> flavor)

Properties

flavor Map<String, Node Function()>
final
hashCode int
The hash code for this object.
no setterinherited
root Node
Contains the root of the rendering tree
no setter
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
visitElementAfter(Element element) → void
Called when an Element has been reached, after its children have been visited.
visitElementBefore(Element element) bool
Called when an Element has been reached, before its children have been visited.
visitText(Text text) → void
Called when a Text node has been reached.

Operators

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