close method

void close ()

Implementation

void close() {
  if (isClose) throw ClosedScopeError(_scopeId);
  isClose = true;
  _modules.forEach((module) {
    module.beans().forEach((bean) {
      if (bean is Scoped) {
        bean.close(_scopeId);
      }
    });
  });
  _closeSelfFunc(_scopeId);
}