copyWith method

ChatSessionSettings copyWith({
  1. ChatSessionModeInfo? modes,
  2. List<ChatConfigOption>? configOptions,
  3. List<ChatInputOmission>? omissions,
  4. bool? truncated,
})

Implementation

ChatSessionSettings copyWith({
  ChatSessionModeInfo? modes,
  List<ChatConfigOption>? configOptions,
  List<acp.ChatInputOmission>? omissions,
  bool? truncated,
}) {
  return ChatSessionSettings(
    modes: modes ?? this.modes,
    configOptions: configOptions ?? this.configOptions,
    omissions: omissions ?? this.omissions,
    truncated: truncated ?? this.truncated,
  );
}