copyWith method

ConversationConfig copyWith({
  1. bool? textOnly,
  2. int? maxDurationSeconds,
  3. List<ClientEvent>? clientEvents,
})

Implementation

ConversationConfig copyWith(
    {bool? textOnly,
    int? maxDurationSeconds,
    List<enums.ClientEvent>? clientEvents}) {
  return ConversationConfig(
      textOnly: textOnly ?? this.textOnly,
      maxDurationSeconds: maxDurationSeconds ?? this.maxDurationSeconds,
      clientEvents: clientEvents ?? this.clientEvents);
}