copyWith method

McpServerStdio copyWith({
  1. Object? name = _acpCopyWithAbsent,
  2. Object? command = _acpCopyWithAbsent,
  3. Object? args = _acpCopyWithAbsent,
  4. Object? env = _acpCopyWithAbsent,
  5. Object? meta = _acpCopyWithAbsent,
})

Implementation

McpServerStdio copyWith({
  Object? name = _acpCopyWithAbsent,
  Object? command = _acpCopyWithAbsent,
  Object? args = _acpCopyWithAbsent,
  Object? env = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => McpServerStdio(
  name: identical(name, _acpCopyWithAbsent) ? this.name : name as String,
  command: identical(command, _acpCopyWithAbsent)
      ? this.command
      : command as String,
  args: identical(args, _acpCopyWithAbsent)
      ? this.args
      : args as List<String>,
  env: identical(env, _acpCopyWithAbsent)
      ? this.env
      : env as List<EnvVariable>,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);