checkNotDisposed method

void checkNotDisposed()
inherited

Throws a StateError if this object has been disposed.

Implementation

void checkNotDisposed() {
  if (_allocation.released) {
    throw StateError('$runtimeType has been disposed.');
  }
}