getCurrentOutput method Null safety

String getCurrentOutput()

Get the current cached output @return String

Implementation

String getCurrentOutput() {
  String tmp = resultQueue.join('\n');
  resultQueue = [];
  return tmp;
}