ChannelResponse.text constructor

ChannelResponse.text({
  1. required ConversationKey conversation,
  2. required String text,
  3. String? replyTo,
  4. Map<String, dynamic>? options,
})

Create a text response.

Implementation

factory ChannelResponse.text({
  required ConversationKey conversation,
  required String text,
  String? replyTo,
  Map<String, dynamic>? options,
}) {
  return ChannelResponse(
    conversation: conversation,
    type: 'text',
    text: text,
    replyTo: replyTo,
    options: options,
  );
}