addInstance method

void addInstance(
  1. Type type,
  2. InstanceMirror instance
)

Implementation

void addInstance(Type type, InstanceMirror instance) {
  _scenarioInstances.putIfAbsent(type, () => instance);
}