UserMessageParams(- {required String message,
- int? pollId,
- List<String>? targetLanguages,
- String? data,
- String? customType,
- PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal,
- bool isChannelMention = false,
- MentionType? mentionType,
- List<String>? mentionedUserIds,
- List<MessageMetaArray>? metaArrays,
- bool? replyToChannel,
- Map<String, dynamic>? extendedMessage,
- bool isPinnedMessage = false}
)
Implementation
UserMessageParams({
required this.message,
this.pollId,
List<String>? targetLanguages,
String? data,
String? customType,
PushNotificationDeliveryOption pushOption =
PushNotificationDeliveryOption.normal,
this.isChannelMention = false,
MentionType? mentionType,
List<String>? mentionedUserIds,
List<MessageMetaArray>? metaArrays,
bool? replyToChannel,
this.extendedMessage,
bool isPinnedMessage = false,
}) : targetLanguages = targetLanguages ?? [],
super(
replyToChannel: replyToChannel ?? false,
data: data,
customType: customType,
pushOption: pushOption,
mentionType: isChannelMention ? MentionType.channel : mentionType,
mentionedUserIds: mentionedUserIds,
metaArrays: metaArrays,
isPinnedMessage: isPinnedMessage,
);