UserMessageParams constructor Null safety

UserMessageParams(
  1. {required String message,
  2. List<String>? targetLanguages,
  3. String? data,
  4. String? customType,
  5. PushNotificationDeliveryOption pushOption = PushNotificationDeliveryOption.normal,
  6. MentionType? mentionType,
  7. List<String>? mentionedUserIds,
  8. List<MessageMetaArray>? metaArrays}
)

Implementation

UserMessageParams({
  required this.message,
  List<String>? targetLanguages,
  String? data,
  String? customType,
  PushNotificationDeliveryOption pushOption =
      PushNotificationDeliveryOption.normal,
  MentionType? mentionType,
  List<String>? mentionedUserIds,
  List<MessageMetaArray>? metaArrays,
})  : targetLanguages = targetLanguages ?? [],
      super(
        data: data,
        customType: customType,
        pushOption: pushOption,
        mentionType: mentionType,
        mentionedUserIds: mentionedUserIds,
        metaArrays: metaArrays,
      );