clearInteractions function Null safety

void clearInteractions(
  1. dynamic mock
)

Clear the collected interactions with mock.

Implementation

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