reset function Null safety

void reset(
  1. dynamic mock
)

Clear stubs of, and collected interactions with mock.

Implementation

void reset(dynamic mock) {
  if (mock is Mock) {
    mock._realCalls.clear();
    mock._responses.clear();
  } else {
    _throwMockArgumentError('reset', mock);
  }
}