tearDown method

void tearDown()

Uninstall the test scheduler, typically done in tearDown method of test.

Implementation

void tearDown() {
  if (_subscription.isDisposed) {
    throw StateError('$this is already tear-down.');
  }
  advanceAll();
  observables.clear();
  subscribers.clear();
  _subscription.dispose();
  _subscription = const DisposedDisposable();
}