lines property

List<String> get lines

If the Progress was created with captureStdout = true or captureStderr = true then lines will contain the captured lines. If neither capture is true then lines will return an empty list.

The simpliest way to caputure stdout is to pass in Progress.capture().

var lines = start('ls *', progress: Progress.capture()).lines;

An UnmodifiableListView of the list is returned.

Implementation

List<String> get lines => UnmodifiableListView(_lines);