action_bloc_test library

Functions

actionBlocTest<B extends ActionBlocBase<State, Action>, State, Action>(String description, {FutureOr<void> setUp()?, required B build(), State seed()?, void act(B bloc)?, Duration? wait, int skip = 0, dynamic expect()?, dynamic expectActions()?, void verify(B bloc)?, dynamic errors()?, FutureOr<void> tearDown()?, dynamic tags}) → void
Creates a new bloc-specific test case with the given description. blocTest will handle asserting that the bloc emits the expected states (in order) after act is executed. blocTest also handles ensuring that no additional states are emitted by closing the bloc stream before evaluating the expectation.