ProcessWrapper constructor Null safety

ProcessWrapper(
  1. Process _delegate
)

Constructs a ProcessWrapper object that delegates to the specified underlying object.

Implementation

ProcessWrapper(this._delegate)
    : _stdout = StreamController<List<int>>(),
      _stderr = StreamController<List<int>>(),
      _stdoutDone = Completer<void>(),
      _stderrDone = Completer<void>() {
  _monitorStdioStream(_delegate.stdout, _stdout, _stdoutDone);
  _monitorStdioStream(_delegate.stderr, _stderr, _stderrDone);
}