PodExpressionContext class final
Context for evaluating expressions in a pod environment.
Provides access to the ConfigurablePodFactory and optional PodScope, which are necessary for resolving values dynamically during pod initialization.
Example:
class MyPodExpressionContext implements PodExpressionContext {
final ConfigurablePodFactory factory;
final Scope? scope;
MyPodExpressionContext(this.factory, this.scope);
@override
ConfigurablePodFactory getPodFactory() => factory;
@override
Scope? getScope() => scope;
}
Constructors
- PodExpressionContext(ConfigurablePodFactory podFactory, PodScope? scope)
- Context for evaluating expressions in a pod environment.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- podFactory ↔ ConfigurablePodFactory
-
Returns the ConfigurablePodFactory that owns this context.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope ↔ PodScope?
-
Returns the active PodScope for this context, if any.
getter/setter pair
Methods
-
contains(
String key) → Future< bool> -
Returns
trueif the givenkeyis a pod in the factory or a contextual object in the scope. -
get(
String key) → Future< Object?> -
Returns the pod or contextual object for the given
key, if any. -
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