MountNode class
Lifecycle boundary node that triggers callbacks on mount and unmount.
Executes onMount after the child tree is attached to the DOM, and onUnmount when the subtree is removed or disposed.
DOM Mounting and SSR
- Browser (
mount): onMount is executed in a microtask immediately after DOM nodes are appended to the document. onUnmount is registered with the enclosing region and called when the region is torn down or rebuilt. - SSR (
renderToHtml): Renders child only. Lifecycle callbacks onMount and onUnmount are intentionally ignored on the server.
Usually created using the DSL sugar Mount.
Constructors
Properties
- child → BloomNode
-
The child descriptor tree enclosed by this lifecycle boundary.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onMount → void Function()?
-
Callback executed asynchronously in a microtask after child is inserted into the DOM.
final
- onUnmount → void Function()?
-
Callback executed synchronously when child is removed from the DOM.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited