ChatViewArguments constructor

const ChatViewArguments({
  1. required String chatJid,
  2. String topicId = '',
  3. bool didNotificationLaunchApp = false,
  4. bool isUser = false,
  5. String? messageId,
  6. bool enableCalls = true,
  7. bool showChatDeliveryIndicator = true,
  8. bool disableAppBar = false,
  9. bool chatInfoPageRedirect = false,
  10. bool enableSwipeToReply = true,
  11. bool menuActionsEnabled = false,
  12. bool isAppBarForwardEnabled = true,
  13. bool isMessageWidgetForwardEnabled = true,
  14. bool isAppBarReplyEnabled = true,
  15. bool isAppBarStarEnabled = true,
  16. bool isAppBarDeleteMessageEnabled = true,
  17. bool isAppBarCopyMessageEnabled = true,
  18. bool isAppBarMessageInfoEnabled = true,
  19. bool isAppBarReportEnabled = true,
  20. bool isAppBarClearChatEnabled = true,
  21. bool isAppBarBlockEnabled = true,
  22. bool isAppBarSearchEnabled = true,
  23. bool isAppBarEmailEnabled = true,
  24. bool isAppBarEditMessageEnabled = true,
  25. bool isAppBarShareEnabled = true,
  26. bool isVoiceCallEnabled = true,
  27. bool isVideoCallEnabled = true,
  28. int swipeSensitivity = 5,
  29. bool showTopicName = true,
  30. Color? topicTitleColor,
  31. Color? topicTitleBgColor,
  32. List<TextInputFormatter>? messageTextFieldInputFormatters,
})

Implementation

const ChatViewArguments({
  required this.chatJid,
  this.topicId = '',
  this.didNotificationLaunchApp = false,
  this.isUser = false,
  this.messageId,
  // this.isFromStarred = false,
  this.enableCalls = true,
  this.showChatDeliveryIndicator = true,
  this.disableAppBar = false,
  this.chatInfoPageRedirect = false,
  this.enableSwipeToReply = true,
  this.menuActionsEnabled = false,
  this.isAppBarForwardEnabled = true,
  this.isMessageWidgetForwardEnabled = true,
  this.isAppBarReplyEnabled = true,
  this.isAppBarStarEnabled = true,
  this.isAppBarDeleteMessageEnabled = true,
  this.isAppBarCopyMessageEnabled = true,
  this.isAppBarMessageInfoEnabled = true,
  this.isAppBarReportEnabled = true,
  this.isAppBarClearChatEnabled = true,
  this.isAppBarBlockEnabled = true,
  this.isAppBarSearchEnabled = true,
  this.isAppBarEmailEnabled = true,
  this.isAppBarEditMessageEnabled = true,
  this.isAppBarShareEnabled = true,
  this.isVoiceCallEnabled = true,
  this.isVideoCallEnabled = true,
  this.swipeSensitivity = 5,
  this.showTopicName = true,
  this.topicTitleColor,
  this.topicTitleBgColor,
  this.messageTextFieldInputFormatters,
}) : assert(swipeSensitivity >= 5 && swipeSensitivity <= 20,
          'swipeSensitivity must be between 5 and 20');