clear method

void clear()

Removes all recorded events.

Implementation

void clear() => _events.clear();