download flutter macos code example
Example 1: add flutter to path mac permanently
Open Terminal
nano ~/.zshrc
Add: export PATH=[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin:$PATH
Run: source ~/.zshrc
restart terminal
Run: flutter doctor -v
Example 2: how to install flutter
Just follow this link : https://flutter.dev/docs/get-started/install
And follow each and every step