toParagraph method

String toParagraph({
  1. int skipLines = 0,
})

toParagraph runs the contents of this String as a CLI command and returns the lines written to stdout and stderr as a single String by join the lines with the platform specific line delimiter.

If you pass a non-zero value to skipLines then the list will skip over the first skipLines count; skipLines must be +ve.

See firstLine toList forEach

Implementation

String toParagraph({int skipLines = 0}) =>
    toList(skipLines: skipLines).join(Platform().eol);