copyWith method

ShellConfig copyWith({
  1. String? program,
  2. List<String>? args,
  3. String? workingDirectory,
  4. Map<String, String>? env,
})

Implementation

ShellConfig copyWith({
  String? program,
  List<String>? args,
  String? workingDirectory,
  Map<String, String>? env,
}) =>
    ShellConfig(
      program: program ?? this.program,
      args: args ?? this.args,
      workingDirectory: workingDirectory ?? this.workingDirectory,
      env: env ?? this.env,
    );