UserMessageParams constructor

UserMessageParams({
  1. required String message,
  2. int? pollId,
  3. List<String>? targetLanguages,
  4. String? data,
  5. String? customType,
  6. PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal,
  7. bool isChannelMention = false,
  8. MentionType? mentionType,
  9. List<String>? mentionedUserIds,
  10. List<MessageMetaArray>? metaArrays,
  11. bool? replyToChannel,
  12. Map<String, dynamic>? extendedMessage,
  13. 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,
      );