QChatMessage constructor Null safety

QChatMessage(
  1. {required int qChatChannelId,
  2. required int qChatServerId,
  3. int? subType,
  4. int? serverStatus,
  5. bool? pushEnable,
  6. String? pushContent,
  7. bool? needPushNick,
  8. bool? needBadge,
  9. List<int>? mentionedRoleIdList,
  10. bool? mentionedAll,
  11. List<String>? mentionedAccidList,
  12. bool? historyEnable,
  13. String? env,
  14. QChatMessageAntiSpamOption? antiSpamOption,
  15. String? uuid,
  16. int? updateTime,
  17. int? time,
  18. String? content,
  19. NIMMessageAttachment? attachment,
  20. bool? resend,
  21. QChatMessageAntiSpamResult? antiSpamResult,
  22. NIMMessageAttachmentStatus? attachStatus,
  23. String? attachStr,
  24. String? callbackExtension,
  25. NIMMessageDirection? direct,
  26. String? fromAccount,
  27. int? fromClientType,
  28. String? fromNick,
  29. Map<String, dynamic>? localExtension,
  30. int? msgIdServer,
  31. NIMMessageType? msgType,
  32. Map<String, dynamic>? pushPayload,
  33. Map<String, dynamic>? remoteExtension,
  34. QChatMessageRefer? replyRefer,
  35. bool? rootThread,
  36. bool? routeEnable,
  37. NIMMessageStatus? status,
  38. QChatMessageRefer? threadRefer,
  39. QChatMsgUpdateContent? updateContent,
  40. QChatMsgUpdateInfo? updateOperatorInfo}
)

Implementation

QChatMessage(
    {required this.qChatChannelId,
    required this.qChatServerId,
    this.subType,
    this.serverStatus,
    this.pushEnable,
    this.pushContent,
    this.needPushNick,
    this.needBadge,
    this.mentionedRoleIdList,
    this.mentionedAll,
    this.mentionedAccidList,
    this.historyEnable,
    this.env,
    this.antiSpamOption,
    this.uuid,
    this.updateTime,
    this.time,
    this.content,
    this.attachment,
    this.resend,
    this.antiSpamResult,
    this.attachStatus,
    this.attachStr,
    this.callbackExtension,
    this.direct,
    this.fromAccount,
    this.fromClientType,
    this.fromNick,
    this.localExtension,
    this.msgIdServer,
    this.msgType,
    this.pushPayload,
    this.remoteExtension,
    this.replyRefer,
    this.rootThread,
    this.routeEnable,
    this.status,
    this.threadRefer,
    this.updateContent,
    this.updateOperatorInfo});