markDisposed method

void markDisposed()

Explicitly mark the object as disposed, which will remove the object from the ScopedObjects.

NOTE that this function will not trigger the DisposableObject.dispose.

Implementation

void markDisposed() {
  assert(_scopedKey != null);
  assert(_scopedObjects != null);

  _scopedObjects!._markDisposed(_scopedKey!);

  _isDisposed = true;
}