recording property

bool recording

recording returns true when we record the test.

Implementation

bool get recording {
  return (_recording);
}
void recording=(bool value)

recording is set to true when we record the test.

Implementation

set recording(bool value) {
  if (value && !_recording && firstRecordingStart == null) {
    firstRecordingStart = DateTime.now();
  }
  if (!value && _recording && firstRecordingStart != null && events.isEmpty) {
    firstRecordingStart = null;
  }
  if (events.isNotEmpty && value) {
    events.last.resumeTime = DateTime.now();
  }
  _recording = value;
}