reset function

void reset(
  1. dynamic mock
)

Clear stubs of, and collected interactions with mock.

Implementation

void reset(var mock) {
  mock._realCalls.clear();
  mock._responses.clear();
}