addVariable method

void addVariable(
  1. String scope,
  2. String name,
  3. dynamic value
)

Add a variable to the context

Implementation

void addVariable(String scope, String name, dynamic value) {
  _appContext = _appContext.addVariable(scope, name, value);

  // Persist session and custom scope variables (not execution scope)
  if (scope == 'session' || (scope != 'execution')) {
    _persistSessionVariables();
  }
}