getInstance method

InstanceMirror getInstance(
  1. Type type
)

Implementation

InstanceMirror getInstance(Type type) {
  InstanceMirror? im = _scenarioInstances[type];

  if (im == null) {
    im = _newInstance(reflectClass(type), _scenarioInstances);
  }

  return im;
}