ChatPage constructor
ChatPage({
- Key? key,
- required AccountModel accountModel,
- required UserModel userModel,
- required List<
Message> messages, - required String chatRoomId,
- bool? isChatLocal = false,
- bool? isCall = false,
- Room? room,
- Widget? customAvatarWidget,
- Widget? customDateHeaderWidget,
- Color? backgroundColor,
- ChatTheme? customTheme,
- dynamic onSendMessagePressed(
- String id,
- PartialText text,
- bool? isRead
- dynamic onSendFilePressed()?,
- dynamic onMessageTap(
- FileMessage data
- dynamic onAttachmentPressed()?,
- dynamic onCallBackCall()?,
- dynamic onCallBackIsOnline()?,
- Future<
void> onEndReached()?,
Implementation
ChatPage(
{super.key,
required this.accountModel,
required this.userModel,
required this.messages,
required this.chatRoomId,
this.isChatLocal = false,
this.isCall = false,
this.room,
this.customAvatarWidget,
this.customDateHeaderWidget,
this.backgroundColor,
this.customTheme,
this.onSendMessagePressed,
this.onSendFilePressed,
this.onMessageTap,
this.onAttachmentPressed,
this.onCallBackCall,
this.onCallBackIsOnline,
this.onEndReached});