ContextProviderNode<T> class

AST node that injects context value into its descendant child tree.

During SSR (renderToHtml) and DOM mounting (mount), ContextProviderNode executes the rendering of child within a runZoned block carrying {context.zoneKey: value} in zoneValues.

This node does not emit any wrapper HTML elements or sentinel comments; it acts as a pure scoping boundary for ambient context lookups.

Usually created via BloomContext.provide rather than directly instantiating this class.

Inheritance

Constructors

ContextProviderNode(BloomContext<T> context, T value, BloomNode child)
Creates a ContextProviderNode associating context with value over child.
const

Properties

child BloomNode
The descendant subtree that has access to value.
final
context BloomContext<T>
The BloomContext token being provided.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value injected into the ambient zone for child and its descendants.
final

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