toList method
Returns stdout and stderr lines as a list.
If you pass a non-zero value to skipLines
then the list will skip over the first skipLines
count;
skipLines
must be +ve.
See:
Implementation
List<String> toList({int skipLines = 0}) {
var skipLines0 = skipLines;
_captureStdout = true;
_captureStderr = true;
_processUntilComplete(devNull);
final lines = <String>[];
for (final line in _lines) {
if (skipLines0 > 0) {
skipLines0--;
} else {
lines.add(line);
}
}
return lines;
}