DuitAbstractTree class abstract
Represents an abstract tree structure for rendering DUIT elements.
The DuitAbstractTree class provides a structure for representing and rendering DUIT elements.
It holds a JSON object representing the DUIT element tree, as well as a UIDriver for interacting with the UI.
The tree is parsed and stored as a DuitElement
object, which can be rendered to a Flutter widget using the render method.
Constructors
-
DuitAbstractTree({required Map<
String, dynamic> json, required UIDriver driver})
Properties
- driver → UIDriver
-
The UIDriver for interacting with the UI.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
json
→ Map<
String, dynamic> -
The JSON object representing the DUIT element tree.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uiRoot ↔ TreeElement
-
The root
DuitElement
of the DUIT element tree.latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
) → Future< DuitAbstractTree> -
Parses the JSON object to create a
DuitElement
object tree. -
parseSync(
) → DuitAbstractTree -
Parses the JSON object to create a
DuitElement
object tree. -
render(
) → Widget - Renders the DUIT element tree to a Flutter widget.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited