outputBytes property

Future<Uint8List> outputBytes

Returns this script's stdout as bytes.

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

Implementation

Future<Uint8List> get outputBytes async =>
    (await Future.wait([collectBytes(stdout), done]))[0] as Uint8List;