copyWith method

  1. @override
IShell copyWith({
  1. bool? verbose,
  2. bool? color,
  3. String? workingDirectory,
  4. Map<String, String>? environment,
  5. 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,
  );
}