setExport function

void setExport (
  1. String key,
  2. Object value
)

Registers property with key and value in the module exports object.

Implementation

void setExport(String key, Object value) {
  setProperty(exports, key, value);
}