isDisposed static method
Whether a disposable is disposed.
This is a protected, so only implementation can know how to check it's dispose state.
Implementation
@protected
static bool isDisposed(Disposable disposable) {
return _disposedObjects[disposable] ?? false;
}