copyWith method

CreateTerminalRequest copyWith({
  1. Object? sessionId = _acpCopyWithAbsent,
  2. Object? command = _acpCopyWithAbsent,
  3. Object? args = _acpCopyWithAbsent,
  4. Object? env = _acpCopyWithAbsent,
  5. Object? cwd = _acpCopyWithAbsent,
  6. Object? outputByteLimit = _acpCopyWithAbsent,
  7. Object? meta = _acpCopyWithAbsent,
})

Implementation

CreateTerminalRequest copyWith({
  Object? sessionId = _acpCopyWithAbsent,
  Object? command = _acpCopyWithAbsent,
  Object? args = _acpCopyWithAbsent,
  Object? env = _acpCopyWithAbsent,
  Object? cwd = _acpCopyWithAbsent,
  Object? outputByteLimit = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => CreateTerminalRequest(
  sessionId: identical(sessionId, _acpCopyWithAbsent)
      ? this.sessionId
      : sessionId as SessionId,
  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>?,
  cwd: identical(cwd, _acpCopyWithAbsent) ? this.cwd : cwd as String?,
  outputByteLimit: identical(outputByteLimit, _acpCopyWithAbsent)
      ? this.outputByteLimit
      : outputByteLimit as int?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);