UserMessageCreateParams constructor
UserMessageCreateParams(- {required String message,
- List<String>? translationTargetLanguages,
- int? pollId,
- Map<String, dynamic>? extendedMessage,
- String? data,
- String? customType,
- MentionType? mentionType,
- List<String>? mentionedUserIds,
- List<MessageMetaArray>? metaArrays,
- int? parentMessageId,
- bool? replyToChannel,
- PushNotificationDeliveryOption pushNotificationDeliveryOption = PushNotificationDeliveryOption.normal,
- 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,
);