ConversationDetailPage constructor

const ConversationDetailPage({
  1. Key? key,
  2. String? title,
  3. String? subtitle,
  4. List<Map<String, dynamic>>? messages,
  5. List<Map<String, dynamic>>? broadcastData,
  6. bool? isSearching,
  7. String? searchQuery,
  8. bool? showEmojiPicker,
  9. TextEditingController? messageController,
  10. TextEditingController? searchController,
  11. FocusNode? focusNode,
  12. VoidCallback? onSendMessage,
  13. ValueChanged<String>? onSearchQueryChanged,
  14. VoidCallback? onToggleEmojiPicker,
  15. VoidCallback? onToggleSearch,
  16. VoidCallback? onClearSearch,
  17. VoidCallback? onBackPressed,
  18. bool addDemoData = true,
  19. bool showAppBar = true,
  20. bool readOnly = false,
  21. void onReactionSelected(
    1. Map<String, dynamic> message,
    2. String reaction
    )?,
  22. ValueChanged<Map<String, dynamic>?>? onTagChanged,
  23. List<String>? mentionableUsers,
  24. VoidCallback? onBack,
  25. int? userId,
  26. ValueChanged<List<File>>? onMediaPicked,
  27. bool? showMediaPicker = true,
  28. bool isLoading = false,
  29. bool isLoadingMore = false,
  30. bool hasMoreMessages = true,
  31. Future<void> onLoadMoreMessages()?,
  32. ScrollController? scrollController,
  33. Widget? shimmerPlaceholder,
  34. bool showDateSeparators = true,
  35. Widget? emptyPlaceholder,
  36. String? emptyTitle,
  37. String? emptySubtitle,
  38. IconData? emptyIcon,
  39. bool? showBackButton,
  40. bool? forceShowBackButton,
})

Implementation

const ConversationDetailPage({
  super.key,
  this.title,
  this.subtitle,
  this.messages,
  this.broadcastData,
  this.isSearching,
  this.searchQuery,
  this.showEmojiPicker,
  this.messageController,
  this.searchController,
  this.focusNode,
  this.onSendMessage,
  this.onSearchQueryChanged,
  this.onToggleEmojiPicker,
  this.onToggleSearch,
  this.onClearSearch,
  this.onBackPressed,
  this.addDemoData = true,
  this.showAppBar = true,
  this.readOnly = false,
  this.onReactionSelected,
  this.onTagChanged,
  this.mentionableUsers,
  this.onBack,
  this.userId,
  this.onMediaPicked,
  this.showMediaPicker = true,
  this.isLoading = false,
  this.isLoadingMore = false,
  this.hasMoreMessages = true,
  this.onLoadMoreMessages,
  this.scrollController,
  this.shimmerPlaceholder,
  this.showDateSeparators = true,
  this.emptyPlaceholder,
  this.emptyTitle,
  this.emptySubtitle,
  this.emptyIcon,
  this.showBackButton,
  this.forceShowBackButton,
});