streamErrorOutput method

StreamSubscription<String> streamErrorOutput(
  1. Process process,
  2. void onData(
    1. String
    )
)

Stream error output from a process

Implementation

StreamSubscription<String> streamErrorOutput(
  Process process,
  void Function(String) onData,
) {
  return process.stderr.transform(utf8.decoder).listen(onData);
}