CustomInteractiveMessage constructor
CustomInteractiveMessage({
- required Map<
String, dynamic> customData, - required String subType,
- dynamic tags,
- int? id,
- String? muid,
- User? sender,
- AppEntity? receiver,
- required String receiverUid,
- String type = MessageTypeConstants.customInteractive,
- required String receiverType,
- String? category = MessageCategoryConstants.interactive,
- DateTime? sentAt,
- DateTime? deliveredAt,
- DateTime? readAt,
- Map<
String, dynamic> ? metadata, - DateTime? readByMeAt,
- DateTime? deliveredToMeAt,
- DateTime? deletedAt,
- DateTime? editedAt,
- String? deletedBy,
- String? editedBy,
- DateTime? updatedAt,
- String? conversationId,
- int? parentMessageId,
- int? replyCount,
Creates a new CustomInteractiveMessage instance. The rest of the parameters are optional and are inherited from InteractiveMessage.
Implementation
CustomInteractiveMessage({
required this.customData,
required this.subType,
tags,
int? id,
String? muid,
super.sender,
super.receiver,
required super.receiverUid,
super.type = MessageTypeConstants.customInteractive,
required super.receiverType,
String? category = MessageCategoryConstants.interactive,
super.sentAt,
super.deliveredAt,
super.readAt,
super.metadata,
super.readByMeAt,
super.deliveredToMeAt,
super.deletedAt,
super.editedAt,
super.deletedBy,
super.editedBy,
super.updatedAt,
super.conversationId,
int? parentMessageId,
int? replyCount,
}) : super(
id: id ?? 0,
muid: muid ?? '',
parentMessageId: parentMessageId ?? 0,
replyCount: replyCount ?? 0,
interactiveData: {
ModelFieldConstants.customData: customData,
});