assign method

void assign(
  1. String varName,
  2. dynamic value, {
  3. String? moduleName,
})

Assign value to a top level variable defined in a certain namespace in the interpreter.

Implementation

void assign(
  String varName,
  dynamic value, {
  String? moduleName,
}) =>
    interpreter.assign(
      varName,
      value,
      moduleName: moduleName,
    );