To find the value of the function at \( x = 2 \), we can use the information given about the line that passes through the points \((2, -2)\) and \((-3, 4)\).
Since one of the points given is \((2, -2)\), we can directly say that the value of the function at \( x = 2 \) is:
\[ f(2) = -2 \]
Thus, the value of the function at \( x = 2 \) is \(-2\).