RootRenderElement class

Root render element.

Root render elements are different from normal render elements in that there can be only one root render element in a single app instance and second they don't have a corresponding widget associated with them.

Inheritance

Constructors

RootRenderElement({required String appTargetId, required Element appTargetDomNode})

Properties

appTargetId String
App's target id.
finalinherited
domNode Element?
Associated DOM node.
no setterinherited
hasDomNode bool
Whether current element has an associated dom node.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Associated widget's key.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget Widget
The configuration for this render element.
no setterinherited
widgetChildren List<Widget>
Child widgets of current widget(if any).
no setteroverride
widgetRuntimeType String
Widget's runtime type.
no setterinherited

Methods

addRenderEventListeners(Map<RenderEventType, RenderEventCallback> listeners) → void
Register RenderEvent listeners.
inherited
afterWidgetRebind({required Widget oldWidget, required Widget newWidget, required UpdateType updateType}) → void
After widget's rebind hook.
inherited
dependOnInheritedWidgetOfExactType<T extends InheritedWidget>() → T?
Obtains the nearest widget of the given type T, which must be the type of a concrete InheritedWidget subclass, and registers this build context with that widget such that when that widget changes (or a new widget of that type is introduced, or the widget goes away), this build context is rebuilt so that it can obtain new values from that widget.
inherited
findAncestorRenderElementOfExactType<T extends RenderElement>() → T?
Returns the nearest ancestor render element of the given type T, which must be the type of a concrete RenderElement subclass.
inherited
findAncestorStateOfType<T extends State<StatefulWidget>>() → T?
Returns the State object of the nearest ancestor StatefulWidget widget that is an instance of the given type T.
inherited
findAncestorWidgetOfExactType<T extends Widget>() → T?
Returns the nearest ancestor widget of the given type T, which must be the type of a concrete Widget subclass.
inherited
findClosestDomNode() Element
Returns dom node that's associated with the current context.
inherited
findClosestDomNodeInAncestors() Element?
Returns the nearest dom node in ancestors.
inherited
findClosestDomNodeInDescendants() Element?
Returns the nearest dom node in descendants.
inherited
findRootAncestorStateOfType<T extends State<StatefulWidget>>() → T?
Returns the State object of the furthest ancestor StatefulWidget widget that is an instance of the given type T.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register() → void
Register hook.
inherited
render({required Widget widget}) DomNodePatch?
Render hook.
inherited
setMetaInformation({required String informationId, required MetaInformation information}) → void
Add or update document meta information.
inherited
toString() String
A string representation of this object.
inherited
traverseAncestorElements(RenderElementCallback callback) → void
Traverse the ancestor elements.
inherited
traverseChildElements(RenderElementCallback callback) → void
Traverse the child elements of this render element.
inherited
unsetMetaInformation({required String informationId}) → void
Clear meta information associated with meta information id.
inherited
update({required UpdateType updateType, required Widget oldWidget, required Widget newWidget}) DomNodePatch?
Update hook.
inherited
visitAncestorElements(RenderElementVisitor visitor) → void
Walks the ancestor chain, starting with the parent of this build context's widget, invoking the argument for each ancestor. The callback is given a reference to the ancestor widget's corresponding Element object. The walk stops when it reaches the root widget or when the callback returns false.
inherited
visitChildElements(RenderElementVisitor visitor) → void
Walks the children of this render element. The callback is given a reference to the child widget's corresponding Element object. The walk stops when it reaches the end of child or when the callback returns false.
inherited

Operators

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