takeOutput method

String takeOutput()

Get the output as a string and clear the buffer.

Implementation

String takeOutput() {
  final result = output.toString();
  output.clear();
  return result;
}