debugDisposed property

bool get debugDisposed

If asserts are enabled, returns whether dispose has been called since the last time any retained resources were created.

Throws an exception if asserts are disabled.

Implementation

bool get debugDisposed {
  late bool disposed;
  assert(() {
    disposed = _debugDisposed;
    return true;
  }());
  return disposed;
}