copyWith method

MessageItemEntity copyWith({
  1. String? iD,
  2. int? random,
  3. int? sequence,
  4. dynamic nameCard,
  5. bool? isRead,
  6. bool? isPeerRead,
  7. bool? isDeleted,
  8. bool? isResend,
  9. bool? hasRiskContent,
  10. bool? onlineonlyflag,
  11. List? atUserList,
  12. List? groupatinfolist,
  13. bool? isBroadcastMessage,
  14. String? priority,
  15. bool? relayflag,
  16. int? clientTime,
  17. int? senderTinyID,
  18. bool? needReadReceipt,
  19. bool? isSupportExtension,
  20. int? to,
  21. String? nick,
  22. String? avatar,
  23. String? protocol,
  24. int? time,
  25. bool? isexcludedfromlastmessage,
  26. bool? isexcludedfromunreadcount,
  27. bool? isModified,
  28. dynamic cloudCustomData,
  29. int? from,
  30. String? conversationType,
  31. int? version,
  32. int? isPlaceMessage,
  33. bool? isRevoked,
  34. bool? isSystemMessage,
  35. MessageItemReadReceiptInfo? readReceiptInfo,
  36. String? revokeReason,
  37. MessageItemRevokerInfo? revokerInfo,
  38. String? conversationSubType,
  39. dynamic revoker,
  40. int? clientSequence,
  41. String? status,
  42. String? flow,
  43. dynamic quoteInfo,
  44. String? conversationID,
  45. List? elements,
  46. Map<String, dynamic>? payload,
  47. String? type,
})

Implementation

MessageItemEntity copyWith({
  String? iD,
  int? random,
  int? sequence,
  dynamic nameCard,
  bool? isRead,
  bool? isPeerRead,
  bool? isDeleted,
  bool? isResend,
  bool? hasRiskContent,
  bool? onlineonlyflag,
  List<dynamic>? atUserList,
  List<dynamic>? groupatinfolist,
  bool? isBroadcastMessage,
  String? priority,
  bool? relayflag,
  int? clientTime,
  int? senderTinyID,
  bool? needReadReceipt,
  bool? isSupportExtension,
  int? to,
  String? nick,
  String? avatar,
  String? protocol,
  int? time,
  bool? isexcludedfromlastmessage,
  bool? isexcludedfromunreadcount,
  bool? isModified,
  dynamic cloudCustomData,
  int? from,
  String? conversationType,
  int? version,
  int? isPlaceMessage,
  bool? isRevoked,
  bool? isSystemMessage,
  MessageItemReadReceiptInfo? readReceiptInfo,
  String? revokeReason,
  MessageItemRevokerInfo? revokerInfo,
  String? conversationSubType,
  dynamic revoker,
  int? clientSequence,
  String? status,
  String? flow,
  dynamic quoteInfo,
  String? conversationID,
  List<dynamic>? elements,
  Map<String, dynamic>? payload,
  String? type,
}) {
  return MessageItemEntity()
    ..iD = iD ?? this.iD
    ..random = random ?? this.random
    ..sequence = sequence ?? this.sequence
    ..nameCard = nameCard ?? this.nameCard
    ..isRead = isRead ?? this.isRead
    ..isPeerRead = isPeerRead ?? this.isPeerRead
    ..isDeleted = isDeleted ?? this.isDeleted
    ..isResend = isResend ?? this.isResend
    ..hasRiskContent = hasRiskContent ?? this.hasRiskContent
    ..onlineonlyflag = onlineonlyflag ?? this.onlineonlyflag
    ..atUserList = atUserList ?? this.atUserList
    ..groupatinfolist = groupatinfolist ?? this.groupatinfolist
    ..isBroadcastMessage = isBroadcastMessage ?? this.isBroadcastMessage
    ..priority = priority ?? this.priority
    ..relayflag = relayflag ?? this.relayflag
    ..clientTime = clientTime ?? this.clientTime
    ..senderTinyID = senderTinyID ?? this.senderTinyID
    ..needReadReceipt = needReadReceipt ?? this.needReadReceipt
    ..isSupportExtension = isSupportExtension ?? this.isSupportExtension
    ..to = to ?? this.to
    ..nick = nick ?? this.nick
    ..avatar = avatar ?? this.avatar
    ..protocol = protocol ?? this.protocol
    ..time = time ?? this.time
    ..isexcludedfromlastmessage = isexcludedfromlastmessage ??
        this.isexcludedfromlastmessage
    ..isexcludedfromunreadcount = isexcludedfromunreadcount ??
        this.isexcludedfromunreadcount
    ..isModified = isModified ?? this.isModified
    ..cloudCustomData = cloudCustomData ?? this.cloudCustomData
    ..from = from ?? this.from
    ..conversationType = conversationType ?? this.conversationType
    ..version = version ?? this.version
    ..isPlaceMessage = isPlaceMessage ?? this.isPlaceMessage
    ..isRevoked = isRevoked ?? this.isRevoked
    ..isSystemMessage = isSystemMessage ?? this.isSystemMessage
    ..readReceiptInfo = readReceiptInfo ?? this.readReceiptInfo
    ..revokeReason = revokeReason ?? this.revokeReason
    ..revokerInfo = revokerInfo ?? this.revokerInfo
    ..conversationSubType = conversationSubType ?? this.conversationSubType
    ..revoker = revoker ?? this.revoker
    ..clientSequence = clientSequence ?? this.clientSequence
    ..status = status ?? this.status
    ..flow = flow ?? this.flow
    ..quoteInfo = quoteInfo ?? this.quoteInfo
    ..conversationID = conversationID ?? this.conversationID
    ..elements = elements ?? this.elements
    ..payload = payload ?? this.payload
    ..type = type ?? this.type;
}