Run the following command:
flutter config --jdk-dir <path_to_jdk>
If you rerun flutter doctor --verbose after this you should see it now updated.
flutter doctor --verbose