checkNotDisposed method

void checkNotDisposed()

Throws StateError when this object has been disposed. Call as the first statement of every public method.

Implementation

void checkNotDisposed() {
  if (_disposed) {
    throw StateError('$disposeLabel has been disposed');
  }
}