thenThrow method

void thenThrow(
  1. Object throwable
)

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

Implementation

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