throwIfNotAvailable method

  1. @override
void throwIfNotAvailable([
  1. String? target
])
override

Implementation

@override
void throwIfNotAvailable([String? target]) {
  if (isDisposing) {
    throw DisposingException(this, target);
  }

  if (isDisposed) {
    throw DisposedException(this, target);
  }
}