ChatTemplate constructor

const ChatTemplate({
  1. Key? key,
  2. required String title,
  3. List<ChatMessage> messages = const <ChatMessage>[],
  4. String? subtitle,
  5. ValueChanged<String>? onSend,
  6. VoidCallback? onBack,
  7. VoidCallback? onAttachment,
  8. String? avatarUrl,
  9. String composerHint = 'Type a message…',
  10. Color? bubbleColor,
})

Implementation

const ChatTemplate({
  super.key,
  required this.title,
  this.messages = const <ChatMessage>[],
  this.subtitle,
  this.onSend,
  this.onBack,
  this.onAttachment,
  this.avatarUrl,
  this.composerHint = 'Type a message…',
  this.bubbleColor,
});