thenEmitError method

void thenEmitError(
  1. Object error
)

Stub to emit an error.

Implementation

void thenEmitError(Object error) => thenAnswer((_) => Stream.error(error));