copyWith method

ChatFolderInviteLink copyWith({
  1. String? inviteLink,
  2. String? name,
  3. List<int>? chatIds,
  4. dynamic extra,
  5. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

ChatFolderInviteLink copyWith({
  String? inviteLink,
  String? name,
  List<int>? chatIds,
  dynamic extra,
  int? clientId,
}) => ChatFolderInviteLink(
  inviteLink: inviteLink ?? this.inviteLink,
  name: name ?? this.name,
  chatIds: chatIds ?? this.chatIds,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);