RenderObjectElement class

Element for render object widgets.

Inheritance

Properties

children List<Element>
The child elements for this node, in paint order.
no setterinherited
context BuildContext
finalinherited
depth int
Current depth from the tree root.
no setterinherited
hadBuildThisFrame bool
Whether the BuildOwner managing this element had dirty elements during the current frame's build phase.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
parent Element?
getter/setter pairinherited
renderObject RenderObject
The render object hosted by this element, or null.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget Widget
getter/setter pairinherited

Methods

build() List<Widget>
Builds this element's child widget list.
inherited
captureMouse() → void
Captures mouse events for this element subtree.
inherited
dispatch(Msg msg) Cmd?
Dispatches a message through interception, children, then self handlers.
inherited
ensureBuilt() → void
Ensures the element is built before it is rendered.
inherited
markNeedsBuild() → void
Marks this element dirty so it participates in the next build scope.
inherited
markNeedsPaint() → void
Schedules a repaint and invalidates ancestor render caches.
inherited
markNeedsPaintScrollOnly() → void
Schedules a repaint for scroll-only changes.
inherited
mount(Element? parent) → void
Mounts this element under parent and performs its initial build.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild() → void
Rebuilds this element if it is currently dirty.
override
releaseMouse() → void
Releases mouse capture for this element subtree.
inherited
render({BoxConstraints? constraints}) String
Renders this element subtree to a terminal string.
override
toString() String
A string representation of this object.
inherited
unmount() → void
Unmounts this element and all descendants.
override
update(Widget newWidget) → void
Updates this element with a new widget configuration.
override
updateChildren(List<Widget> newWidgets) → void
Reconcile old children with new widgets using Flutter's algorithm.
inherited

Operators

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