Gate‐voltage dependence of the critical current of the superconducting field effect transistor