NiceChat constructor

const NiceChat({
  1. Key? key,
  2. required List<NiceChatMessage> messages,
  3. required String currentUserId,
  4. void onSendMessage(
    1. String message
    )?,
  5. void onMessageTap(
    1. NiceChatMessage message
    )?,
  6. bool showTimestamps = true,
  7. bool showAvatars = true,
  8. bool showReadReceipts = true,
  9. String? placeholder,
  10. Widget? emptyWidget,
  11. 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,
});