It work for me. Follow these steps:
cd /Library/development/flutter
git fetch --all --tags
git checkout tags/3.19.0
Finally, run flutter doctor to ensure everything is set up correctly