ChatTemplate constructor
const
ChatTemplate({
- Key? key,
- required String title,
- List<
ChatMessage> messages = const <ChatMessage>[], - String? subtitle,
- ValueChanged<
String> ? onSend, - VoidCallback? onBack,
- VoidCallback? onAttachment,
- String? avatarUrl,
- String composerHint = 'Type a messageā¦',
- 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,
});