copyWith method
IShell
copyWith({
- bool? verbose,
- bool? color,
- String? workingDirectory,
- Map<
String, String> ? environment, - bool? throwOnError,
override
Clones the current IShell instance, overriding properties as specified
since 0.0.1
Implementation
@override
IShell copyWith({
bool? verbose,
bool? color,
String? workingDirectory,
Map<String, String>? environment,
bool? throwOnError,
}) {
return ProcessRunShell(
verbose: verbose ?? _verbose,
color: color ?? _color,
workingDirectory: workingDirectory ?? _workingDirectory,
environment: environment ?? _environment,
throwOnError: throwOnError ?? _throwOnError,
);
}