copyWith method
MessageItemEntity
copyWith({
- String? iD,
- int? random,
- int? sequence,
- dynamic nameCard,
- bool? isRead,
- bool? isPeerRead,
- bool? isDeleted,
- bool? isResend,
- bool? hasRiskContent,
- bool? onlineonlyflag,
- List? atUserList,
- List? 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? elements,
- Map<
String, dynamic> ? payload, - 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;
}