copyWith method

ConversationItemLastMessage copyWith({
  1. int? lastTime,
  2. int? lastSequence,
  3. String? fromAccount,
  4. String? messageForShow,
  5. ConversationItemLastMessagePayload? payload,
  6. String? type,
  7. bool? isRevoked,
  8. dynamic cloudCustomData,
  9. bool? onlineOnlyFlag,
  10. String? nick,
  11. String? nameCard,
  12. int? version,
  13. bool? isPeerRead,
  14. dynamic revoker,
})

Implementation

ConversationItemLastMessage copyWith({
  int? lastTime,
  int? lastSequence,
  String? fromAccount,
  String? messageForShow,
  ConversationItemLastMessagePayload? payload,
  String? type,
  bool? isRevoked,
  dynamic cloudCustomData,
  bool? onlineOnlyFlag,
  String? nick,
  String? nameCard,
  int? version,
  bool? isPeerRead,
  dynamic revoker,
}) {
  return ConversationItemLastMessage()
    ..lastTime = lastTime ?? this.lastTime
    ..lastSequence = lastSequence ?? this.lastSequence
    ..fromAccount = fromAccount ?? this.fromAccount
    ..messageForShow = messageForShow ?? this.messageForShow
    ..payload = payload ?? this.payload
    ..type = type ?? this.type
    ..isRevoked = isRevoked ?? this.isRevoked
    ..cloudCustomData = cloudCustomData ?? this.cloudCustomData
    ..onlineOnlyFlag = onlineOnlyFlag ?? this.onlineOnlyFlag
    ..nick = nick ?? this.nick
    ..nameCard = nameCard ?? this.nameCard
    ..version = version ?? this.version
    ..isPeerRead = isPeerRead ?? this.isPeerRead
    ..revoker = revoker ?? this.revoker;
}