clone method

ShellOptions clone({
  1. bool? throwOnError,
  2. String? workingDirectory,
  3. bool? runInShell,
  4. Encoding? stdoutEncoding,
  5. Encoding? stderrEncoding,
  6. Stream<List<int>>? stdin,
  7. StreamSink<List<int>>? stdout,
  8. StreamSink<List<int>>? stderr,
  9. bool? verbose,
  10. bool? commandVerbose,
  11. bool? commentVerbose,
  12. bool? noStdoutResult,
  13. bool? noStderrResult,
  14. ShellEnvironment? shellEnvironment,
})

Create a new shell

Implementation

ShellOptions clone({
  bool? throwOnError,
  String? workingDirectory,
  bool? runInShell,
  Encoding? stdoutEncoding,
  Encoding? stderrEncoding,
  Stream<List<int>>? stdin,
  StreamSink<List<int>>? stdout,
  StreamSink<List<int>>? stderr,
  bool? verbose,
  bool? commandVerbose,
  bool? commentVerbose,
  bool? noStdoutResult,
  bool? noStderrResult,
  ShellEnvironment? shellEnvironment,
}) {
  return ShellOptions(
    verbose: verbose ?? _verbose,
    runInShell: runInShell ?? _runInShell,
    commandVerbose: commandVerbose ?? _commandVerbose,
    commentVerbose: commentVerbose ?? _commentVerbose,
    stderr: stderr ?? _stderr,
    stderrEncoding: stderrEncoding ?? _stderrEncoding,
    stdin: stdin ?? _stdin,
    stdout: stdout ?? _stdout,
    stdoutEncoding: stdoutEncoding ?? _stdoutEncoding,
    throwOnError: throwOnError ?? _throwOnError,
    workingDirectory: workingDirectory ?? _workingDirectory,
    environment: shellEnvironment ?? _environment,
    noStdoutResult: noStdoutResult ?? _noStdoutResult,
    noStderrResult: noStderrResult ?? _noStderrResult,
  );
}