ElementTree class
Owns an element tree and provides rendering.
Constructors
- ElementTree(Widget rootWidget, {BuildOwner? owner})
-
Creates and mounts an element tree for
rootWidget.
Properties
- hasDirty → bool
-
Whether the tree has pending build work.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPaintDirty → bool
-
Whether the tree has pending paint work.
no setter
- mouseCapture → Element?
-
The element currently capturing mouse input.
no setter
- owner → BuildOwner
-
The BuildOwner managing this tree's build lifecycle and frame timing.
no setter
- root → Element
-
The mounted root element.
no setter
- rootWidget ↔ Widget
-
Root widget used to configure this tree.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
collectHandleInit(
) → Cmd? - Collects initialization commands from widgets and state objects.
-
dispatch(
Msg msg) → Cmd? -
Dispatches
msgto the root element. -
dispatchBubbleUp(
Element startElement, Msg msg, {Set< Element> ? visited}) → Cmd? -
Dispatches
msgby walking UP the element tree fromstartElementto the root, callinghandleUpdateon each StatefulElement's state. -
dispatchTo(
Element element, Msg msg) → Cmd? -
Dispatches
msgdirectly toelement. -
hitTestAt(
double x, double y) → List< HitTestElementEntry> - Hit-tests the render tree at the given terminal coordinates and returns a list of HitTestElementEntry objects, deepest first.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
) → String - Renders one widget frame and returns terminal output.
-
setRootConstraints(
BoxConstraints? constraints) → void - Overrides constraints used when rendering the root.
-
toString(
) → String -
A string representation of this object.
inherited
-
unmount(
) → void - Unmounts the entire element tree.
-
update(
Widget widget) → void - Updates the tree with a new root widget configuration.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited