copyWith method

ChatInviteLinkInfo copyWith({
  1. int? chatId,
  2. int? accessibleFor,
  3. InviteLinkChatType? type,
  4. String? title,
  5. ChatPhotoInfo? photo,
  6. int? accentColorId,
  7. String? description,
  8. int? memberCount,
  9. List<int>? memberUserIds,
  10. ChatInviteLinkSubscriptionInfo? subscriptionInfo,
  11. bool? createsJoinRequest,
  12. bool? isPublic,
  13. VerificationStatus? verificationStatus,
})

Implementation

ChatInviteLinkInfo copyWith({
  int? chatId,
  int? accessibleFor,
  InviteLinkChatType? type,
  String? title,
  ChatPhotoInfo? photo,
  int? accentColorId,
  String? description,
  int? memberCount,
  List<int>? memberUserIds,
  ChatInviteLinkSubscriptionInfo? subscriptionInfo,
  bool? createsJoinRequest,
  bool? isPublic,
  VerificationStatus? verificationStatus,
}) =>
    ChatInviteLinkInfo(
      chatId: chatId ?? this.chatId,
      accessibleFor: accessibleFor ?? this.accessibleFor,
      type: type ?? this.type,
      title: title ?? this.title,
      photo: photo ?? this.photo,
      accentColorId: accentColorId ?? this.accentColorId,
      description: description ?? this.description,
      memberCount: memberCount ?? this.memberCount,
      memberUserIds: memberUserIds ?? this.memberUserIds,
      subscriptionInfo: subscriptionInfo ?? this.subscriptionInfo,
      createsJoinRequest: createsJoinRequest ?? this.createsJoinRequest,
      isPublic: isPublic ?? this.isPublic,
      verificationStatus: verificationStatus ?? this.verificationStatus,
    );