debugDisposed property Null safety

bool debugDisposed

Whether this reference to the underlying picture is disposed.

This only returns a valid value if asserts are enabled, and must not be used otherwise.

Implementation

bool get debugDisposed {
  bool? disposed;
  assert(() {
    disposed = _disposed;
    return true;
  }());
  return disposed ?? (throw StateError('Picture.debugDisposed is only available when asserts are enabled.'));
}