expectDisposed<T> static method

void expectDisposed<T>(
  1. Rx<T> rx
)

Test that reactive values are disposed properly

Implementation

static void expectDisposed<T>(Rx<T> rx) {
  if (!rx.isDisposed) {
    throw Exception('Expected Rx to be disposed but it was not');
  }
}