copyWith method

ConversationItemGroupProfile copyWith({
  1. String? groupID,
  2. String? name,
  3. String? avatar,
  4. String? type,
  5. String? introduction,
  6. String? notification,
  7. String? ownerID,
  8. String? createTime,
  9. Map? selfInfo,
  10. Map? lastMessage,
  11. int? nextMessageSeq,
  12. int? memberCount,
  13. int? maxMemberCount,
  14. String? joinOption,
  15. String? inviteOption,
  16. bool? muteAllMembers,
  17. bool? isSupportTopic,
})

Implementation

ConversationItemGroupProfile copyWith({
  String? groupID,
  String? name,
  String? avatar,
  String? type,
  String? introduction,
  String? notification,
  String? ownerID,
  String? createTime,
  Map? selfInfo,
  Map? lastMessage,
  int? nextMessageSeq,
  int? memberCount,
  int? maxMemberCount,
  String? joinOption,
  String? inviteOption,
  bool? muteAllMembers,
  bool? isSupportTopic,
}) {
  return ConversationItemGroupProfile()
    ..groupID = groupID ?? this.groupID
    ..name = name ?? this.name
    ..avatar = avatar ?? this.avatar
    ..type = type ?? this.type
    ..introduction = introduction ?? this.introduction
    ..notification = notification ?? this.notification
    ..ownerID = ownerID ?? this.ownerID
    ..createTime = createTime ?? this.createTime
    ..selfInfo = selfInfo ?? this.selfInfo
    ..lastMessage = lastMessage ?? this.lastMessage
    ..nextMessageSeq = nextMessageSeq ?? this.nextMessageSeq
    ..memberCount = memberCount ?? this.memberCount
    ..maxMemberCount = maxMemberCount ?? this.maxMemberCount
    ..joinOption = joinOption ?? this.joinOption
    ..inviteOption = inviteOption ?? this.inviteOption
    ..muteAllMembers = muteAllMembers ?? this.muteAllMembers
    ..isSupportTopic = isSupportTopic ?? this.isSupportTopic;
}