removeScopedBind method

bool removeScopedBind()
inherited

Implementation

bool removeScopedBind() {
  final totalBind = _singletonBinds.length;
  _singletonBinds.removeWhere((key, singletonBind) {
    if (singletonBind.bind.isScoped) {
      disposeResolverFunc?.call(singletonBind.value);
      return true;
    }
    return false;
  });

  return totalBind != _singletonBinds.length;
}