rx_bloc_test library

Functions

rxBlocTest<B extends RxBlocTypeBase, StateOutputType>(String message, {required Future<B> build(), required Stream<StateOutputType> state(B), required Iterable expect, Future<void> act(B)?, Duration? wait, int skip = 0}) → void
Creates a new test for a specific bloc state. rxBlocTest will create the specific test and initialize it's state as well perform all the necessary operations based on provided parameters before expecting the desired values. rxBlocTest will ensure that no additional states are emitted by closing the states stream just before the evaluation.