EvaluationContext class final
What evaluation reads from: state, statement refs, library calls.
Constructors
-
EvaluationContext({required Object? getState(String name), required Object? resolveRef(String name), Map<
String, RuntimeFunction> functions = const {}, Map<String, JsonSchema> actions = const {}, Map<String, Object?> ? extraScope, void reportError(String message)?, String? locale, NodeBudget? nodes}) -
const
Properties
-
actions
→ Map<
String, JsonSchema> -
Library action param schemas by name.
final
- extraScope → JsonSchema?
-
final
-
functions
→ Map<
String, RuntimeFunction> -
final
- getState → Object? Function(String name)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → String?
-
The intl locale functions format in; null for the reference's en-US output.
final
- nodes → NodeBudget?
-
Caps the components this evaluation builds; null for no cap.
final
- reportError → void Function(String message)?
-
final
- resolveRef → Object? Function(String name)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Object? resolveRef(String name)?, Map< String, Object?> ? extraScope, void reportError(String message)?, NodeBudget? nodes}) → EvaluationContext -
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