copyWith method

ChatInviteLinkInfo copyWith({
  1. int? chatId,
  2. int? accessibleFor,
  3. ChatType? type,
  4. String? title,
  5. ChatPhotoInfo? photo,
  6. String? description,
  7. int? memberCount,
  8. List<int>? memberUserIds,
  9. bool? createsJoinRequest,
  10. bool? isPublic,
  11. dynamic extra,
  12. int? clientId,
})

Implementation

ChatInviteLinkInfo copyWith({
  int? chatId,
  int? accessibleFor,
  ChatType? type,
  String? title,
  ChatPhotoInfo? photo,
  String? description,
  int? memberCount,
  List<int>? memberUserIds,
  bool? createsJoinRequest,
  bool? isPublic,
  dynamic extra,
  int? clientId,
}) => ChatInviteLinkInfo(
  chatId: chatId ?? this.chatId,
  accessibleFor: accessibleFor ?? this.accessibleFor,
  type: type ?? this.type,
  title: title ?? this.title,
  photo: photo ?? this.photo,
  description: description ?? this.description,
  memberCount: memberCount ?? this.memberCount,
  memberUserIds: memberUserIds ?? this.memberUserIds,
  createsJoinRequest: createsJoinRequest ?? this.createsJoinRequest,
  isPublic: isPublic ?? this.isPublic,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);