reply method

void reply(
  1. String method,
  2. Pattern path,
  3. MockResponse response
)

Answers every matching request with response.

Implementation

void reply(String method, Pattern path, MockResponse response) {
  on(method, path, (_) => response);
}