clone method
- @Deprecated('Use clone with options')
- bool? throwOnError,
- String? workingDirectory,
- @Deprecated('Don\'t change map') Map<
String, String> ? environment, - @Deprecated('Don\'t change includeParentEnvironment') bool? includeParentEnvironment,
- bool? runInShell,
- Encoding? stdoutEncoding,
- Encoding? stderrEncoding,
- Stream<
List< ? stdin,int> > - StreamSink<
List< ? stdout,int> > - StreamSink<
List< ? stderr,int> > - bool? verbose,
- bool? commandVerbose,
- bool? commentVerbose,
Create a new shell
Implementation
@Deprecated('Use clone with options')
Shell clone({
bool? throwOnError,
String? workingDirectory,
// Don't change environment
@Deprecated('Don\'t change map') Map<String, String>? environment,
/// Explicetely set e new environment
// ShellEnvironment? shellEnvironment,
@Deprecated('Don\'t change includeParentEnvironment')
// Don't change includeParentEnvironment
bool? includeParentEnvironment,
bool? runInShell,
Encoding? stdoutEncoding,
Encoding? stderrEncoding,
Stream<List<int>>? stdin,
StreamSink<List<int>>? stdout,
StreamSink<List<int>>? stderr,
bool? verbose,
bool? commandVerbose,
bool? commentVerbose,
}) {
var localShellEnvironment =
// Compat
(environment is ShellEnvironment ? environment : null);
return Shell(
options: options.clone(
throwOnError: throwOnError,
workingDirectory: workingDirectory,
runInShell: runInShell,
stdoutEncoding: stdoutEncoding,
stderrEncoding: stderrEncoding,
stdin: stdin,
stderr: stderr,
stdout: stdout,
commentVerbose: commentVerbose,
commandVerbose: commandVerbose,
shellEnvironment: localShellEnvironment,
verbose: verbose,
));
}