api/internal/variable_scope
library
Classes
-
VariableScope
-
An immutable set of runtime variables a surface is rendered against, with
convenience methods for interpolating a single string.
-
VariableScopeProvider
-
Carries the active VariableScope down the widget tree so descendants can
interpolate copy at draw time without receiving the variables as a prop.
Mirrors
EngageActionContextScope.
Functions
-
interpolateVariables(String text, Map<String, dynamic>? variables)
→ String
-
Replaces
{{ name }} placeholders in text using variables. A matched
value is stringified via toString(); an unmatched placeholder collapses to
an empty string; a null/empty variables map or a string with no {{
returns text unchanged.
-
resolveValue(String text, Map<String, dynamic>? variables)
→ Object?
-
Resolves
text to a value that keeps its type.