ChatViewArguments constructor
const
ChatViewArguments({
- required String chatJid,
- String topicId = '',
- bool didNotificationLaunchApp = false,
- bool isUser = false,
- String? messageId,
- bool enableCalls = true,
- bool showChatDeliveryIndicator = true,
- bool disableAppBar = false,
- bool chatInfoPageRedirect = false,
- bool enableSwipeToReply = true,
- bool isAppBarForwardEnabled = true,
- bool isMessageWidgetForwardEnabled = true,
- bool isAppBarReplyEnabled = true,
- bool isAppBarStarEnabled = true,
- bool isAppBarDeleteMessageEnabled = true,
- bool isAppBarCopyMessageEnabled = true,
- bool isAppBarMessageInfoEnabled = true,
- bool isAppBarReportEnabled = true,
- bool isAppBarClearChatEnabled = true,
- bool isAppBarBlockEnabled = true,
- bool isAppBarSearchEnabled = true,
- bool isAppBarEmailEnabled = true,
- bool isAppBarEditMessageEnabled = true,
- bool isVoiceCallEnabled = true,
- bool isVideoCallEnabled = true,
- int swipeSensitivity = 5,
- bool showTopicName = true,
- Color? topicTitleColor,
- Color? topicTitleBgColor,
- 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');