How can i check if the player reached the destination?

Hi,
my player moves via path finding (nav mesh) by clicking on a point. When i click on a point, the player moves to the point and triggers an animation. Now i want to trigger another animation parameter, when the player stops moving (reaches the destination point)

This is my player code:

using UnityEngine;
using UnityEngine.AI;

public class ZeroCTRL : MonoBehaviour
{
   public Camera kamera;

   public NavMeshAgent zero;

   public Animator anim;


    void Start ()
    {
    
    }
  
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            Ray position = kamera.ScreenPointToRay(Input.mousePosition);
            RaycastHit click;

            if (Physics.Raycast(position, out click))
            {
                zero.SetDestination(click.point);
                anim.SetTrigger(name: "bewegen");
            }
        }
       
       


     
    }
}

If you try Google actually that’s plenty options

ive been trying out alot of stuff the past hours. i found some properties for the agent like “isStopped” or “hasPath” but i fail trying to put it in an if statement.

You can set a destination point.

Vector3 dest = new Vector3(x,y,z);
void Update()
{
   //check if we reach our destination
   if(Vector3.Distance(dest,transform.position) < 1)
   {
      //we are close to our destination so do something
   }
}