debugDisposed property
Whether this object has been disposed or not.
Only for use when asserts are enabled.
Implementation
bool get debugDisposed {
bool? disposed;
assert(() {
disposed = _disposed;
return true;
}());
return disposed ?? (throw StateError('debugDisposed only available when asserts are on.'));
}