thenThrow method

void thenThrow (
  1. dynamic throwable
)

Store an exception to throw when this method stub is called.

Implementation

void thenThrow(throwable) {
  return _completeWhen((_) {
    throw throwable;
  });
}