isCleared method

bool isCleared()

isCleared returns true in case the record is in a state that would be equivalent if clear was called.

Implementation

bool isCleared() {
  return (testName.isEmpty &&
      firstRecordingStart == null &&
      !_recording &&
      events.isEmpty);
}