clone method
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,
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);
}