throwIfDisposed method

void throwIfDisposed()

Throws an AudioResourceDisposedException if this resource is already disposed.

Implementation

void throwIfDisposed() {
  if (isDisposed) {
    throw AudioResourceDisposedException(resourceId, runtimeType.toString());
  }
}