ChatPage constructor

ChatPage({
  1. Key? key,
  2. required AccountModel accountModel,
  3. required UserModel userModel,
  4. required List<Message> messages,
  5. required String chatRoomId,
  6. bool? isChatLocal = false,
  7. bool? isCall = false,
  8. Room? room,
  9. Widget? customAvatarWidget,
  10. Widget? customDateHeaderWidget,
  11. Color? backgroundColor,
  12. ChatTheme? customTheme,
  13. dynamic onSendMessagePressed(
    1. String id,
    2. PartialText text,
    3. bool? isRead
    )?,
  14. dynamic onSendFilePressed(
    1. String id,
    2. String name,
    3. File file,
    4. int? size,
    5. bool isRead,
    )?,
  15. dynamic onMessageTap(
    1. FileMessage data
    )?,
  16. dynamic onAttachmentPressed(
    1. dynamic (
      1. File file, {
      2. int? size,
      3. String? type,
      })
    )?,
  17. dynamic onCallBackCall(
    1. User,
    2. String? callType
    )?,
  18. dynamic onCallBackIsOnline(
    1. bool
    )?,
  19. 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});