thenAnswer method

void thenAnswer(
  1. Answering<T> answer
)

Store a function which is called when this method stub is called.

The function will be called, and the return value will be returned.

Implementation

void thenAnswer(Answering<T> answer) {
  return _completeWhen(answer);
}