Below is the graph of a trigonometric function. It has a maximum point at $\left(-\dfrac{\pi}{3},2\right)$ and an amplitude of $1.8$.

**What is the midline equation of the function? **
$y=$ [[☃ math-keypad 2]]