withMocktailState method

void withMocktailState(
  1. T cubitState
)

Implementation

void withMocktailState(T cubitState) {
  mocktail.when(() => state).thenAnswer((_) => cubitState);
  mocktail.when(() => stream).thenAnswer((_) => Stream.value(cubitState));
  mocktail.when(close).thenAnswer((_) async {});
}