expectNotDisposed<T> static method

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

Test that reactive values are not disposed

Implementation

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