copyWith method

ChatInviteLinkCount copyWith({
  1. int? userId,
  2. int? inviteLinkCount,
  3. int? revokedInviteLinkCount,
})

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

Implementation

ChatInviteLinkCount copyWith({
  int? userId,
  int? inviteLinkCount,
  int? revokedInviteLinkCount,
}) =>
    ChatInviteLinkCount(
      userId: userId ?? this.userId,
      inviteLinkCount: inviteLinkCount ?? this.inviteLinkCount,
      revokedInviteLinkCount:
          revokedInviteLinkCount ?? this.revokedInviteLinkCount,
    );