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