expectAllEqual<T> static method

void expectAllEqual<T>(
  1. List<Rx<T>> rxValues,
  2. T expectedValue
)

Test multiple reactive values for consistency

Implementation

static void expectAllEqual<T>(List<Rx<T>> rxValues, T expectedValue) {
  for (int i = 0; i < rxValues.length; i++) {
    if (rxValues[i].value != expectedValue) {
      throw Exception(
          'Rx at index $i has value ${rxValues[i].value}, expected $expectedValue');
    }
  }
}