Manager class for the widgets framework.
This class tracks which widgets need rebuilding, and handles other tasks that apply to widget trees as a whole, such as managing the inactive element list for the tree and triggering the "reassemble" command when necessary during hot reload when debugging.
The main build owner is typically owned by the WidgetsBinding, and is driven from the operating system along with the rest of the build/layout/paint pipeline.
Additional build owners can be built to manage off-screen widget trees.
To assign a build owner to a tree, use the RootRenderObjectElement.assignOwner method on the root element of the widget tree.
- debugBuilding → bool
Whether this widget tree is in the build phase. [...]
- focusManager → FocusManager
The object in charge of the focus tree. [...]
- onBuildScheduled ↔ VoidCallback
Called on each build pass when the first buildable element is marked
read / write
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
Element context, [ VoidCallback callback ]) → void
Establishes a scope for updating the widget tree, and calls the given
callback, if any. Then, builds all the elements that were marked as dirty using scheduleBuildFor, in depth order. [...]
) → void
- Complete the element build pass by unmounting any elements that are no longer active. [...]
void callback()) → void
Establishes a scope in which calls to State.setState are forbidden, and
calls the given
Element root) → void
- Cause the entire subtree rooted at the given Element to be entirely rebuilt. This is used by development tools when the application code has changed and is being hot-reloaded, to cause the widget tree to pick up any changed implementations. [...]
Element element) → void
- Adds an element to the dirty elements list so that it will be rebuilt when WidgetsBinding.drawFrame calls buildScope.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.