NiceChat constructor
const
NiceChat({
- Key? key,
- required List<
NiceChatMessage> messages, - required String currentUserId,
- void onSendMessage(
- String message
- void onMessageTap(
- NiceChatMessage message
- bool showTimestamps = true,
- bool showAvatars = true,
- bool showReadReceipts = true,
- String? placeholder,
- Widget? emptyWidget,
- bool enabled = true,
Implementation
const NiceChat({
super.key,
required this.messages,
required this.currentUserId,
this.onSendMessage,
this.onMessageTap,
this.showTimestamps = true,
this.showAvatars = true,
this.showReadReceipts = true,
this.placeholder,
this.emptyWidget,
this.enabled = true,
});