UserMessageCreateParams constructor

UserMessageCreateParams(
  1. {required String message,
  2. List<String>? translationTargetLanguages,
  3. int? pollId,
  4. Map<String, dynamic>? extendedMessage,
  5. String? data,
  6. String? customType,
  7. MentionType? mentionType,
  8. List<String>? mentionedUserIds,
  9. List<MessageMetaArray>? metaArrays,
  10. int? parentMessageId,
  11. bool? replyToChannel,
  12. PushNotificationDeliveryOption pushNotificationDeliveryOption = PushNotificationDeliveryOption.normal,
  13. bool isPinnedMessage = false}
)

Implementation

UserMessageCreateParams({
  required this.message,
  List<String>? translationTargetLanguages,
  this.pollId,
  this.extendedMessage,
  String? data,
  String? customType,
  MentionType? mentionType,
  List<String>? mentionedUserIds,
  List<MessageMetaArray>? metaArrays,
  int? parentMessageId,
  bool? replyToChannel,
  PushNotificationDeliveryOption pushNotificationDeliveryOption =
      PushNotificationDeliveryOption.normal,
  bool isPinnedMessage = false,
})  : translationTargetLanguages = translationTargetLanguages ?? [],
      super(
        data: data,
        customType: customType,
        mentionType: mentionType ?? MentionType.users,
        mentionedUserIds: mentionedUserIds,
        metaArrays: metaArrays,
        parentMessageId: parentMessageId,
        replyToChannel: replyToChannel ?? false,
        pushNotificationDeliveryOption: pushNotificationDeliveryOption,
        isPinnedMessage: isPinnedMessage,
      );