debugDisposed property Null safety

bool debugDisposed

Whether this reference to the underlying image 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('Image.debugDisposed is only available when asserts are enabled.'));
}