assign method

Variable<T> assign(
  1. String name,
  2. T value
)

Assigns a value to the variable with the given name, or creates a new variable.

You cannot use this method to assign constants.

Returns the variable whose value was just assigned.

Implementation

Variable<T> assign(String name, T value) {
  return resolveOrCreate(name)..value = value;
}