lines<T extends Object> method

  1. @override
Future<List<T>> lines<T extends Object>()

Splits the output by newlines and converts each split into the desired type T. Will throw a ShellException if the shell process did not exit with 0 as the exit code. Will throw a ShellConversionException if cannot convert to the desired type T.

Implementation

@override
Future<List<T>> lines<T extends Object>() =>
    _callWithRegExp<T>(base.$.newLinesExp);