withMockitoState method

void withMockitoState(
  1. T cubitState
)

Implementation

void withMockitoState(T cubitState) {
  mockito.when(state).thenAnswer((_) => cubitState);
  mockito.when(stream).thenAnswer((_) => Stream.value(cubitState));
}