output property

Future<String> output

Returns this script's stdout, with trailing newlines removed.

Like stdout.text, but throws a ScriptException if the executable returns a non-zero exit code.

Implementation

Future<String> get output async =>
    (await Future.wait([stdout.text, done]))[0] as String;