copyWith method

NewSessionRequest copyWith({
  1. Object? cwd = _acpCopyWithAbsent,
  2. Object? additionalDirectories = _acpCopyWithAbsent,
  3. Object? mcpServers = _acpCopyWithAbsent,
  4. Object? meta = _acpCopyWithAbsent,
})

Implementation

NewSessionRequest copyWith({
  Object? cwd = _acpCopyWithAbsent,
  Object? additionalDirectories = _acpCopyWithAbsent,
  Object? mcpServers = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => NewSessionRequest(
  cwd: identical(cwd, _acpCopyWithAbsent) ? this.cwd : cwd as String,
  additionalDirectories: identical(additionalDirectories, _acpCopyWithAbsent)
      ? this.additionalDirectories
      : additionalDirectories as List<String>?,
  mcpServers: identical(mcpServers, _acpCopyWithAbsent)
      ? this.mcpServers
      : mcpServers as List<McpServer>,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);