copyWith method

ChatInviteLink copyWith({
  1. String? inviteLink,
  2. String? name,
  3. int? creatorUserId,
  4. int? date,
  5. int? editDate,
  6. int? expirationDate,
  7. int? memberLimit,
  8. int? memberCount,
  9. int? pendingJoinRequestCount,
  10. bool? createsJoinRequest,
  11. bool? isPrimary,
  12. bool? isRevoked,
  13. dynamic extra,
  14. int? clientId,
})

Implementation

ChatInviteLink copyWith({
  String? inviteLink,
  String? name,
  int? creatorUserId,
  int? date,
  int? editDate,
  int? expirationDate,
  int? memberLimit,
  int? memberCount,
  int? pendingJoinRequestCount,
  bool? createsJoinRequest,
  bool? isPrimary,
  bool? isRevoked,
  dynamic extra,
  int? clientId,
}) =>
    ChatInviteLink(
      inviteLink: inviteLink ?? this.inviteLink,
      name: name ?? this.name,
      creatorUserId: creatorUserId ?? this.creatorUserId,
      date: date ?? this.date,
      editDate: editDate ?? this.editDate,
      expirationDate: expirationDate ?? this.expirationDate,
      memberLimit: memberLimit ?? this.memberLimit,
      memberCount: memberCount ?? this.memberCount,
      pendingJoinRequestCount:
          pendingJoinRequestCount ?? this.pendingJoinRequestCount,
      createsJoinRequest: createsJoinRequest ?? this.createsJoinRequest,
      isPrimary: isPrimary ?? this.isPrimary,
      isRevoked: isRevoked ?? this.isRevoked,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );