ChannelResponse.text constructor
ChannelResponse.text({
- required ConversationKey conversation,
- required String text,
- String? replyTo,
- 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,
);
}