brew tap dart-lang/dart
 brew install dart
  • バージョン管理ツールのfvmを入れる
pub global activate fvm
  • pathを通す
echo 'export PATH="$PATH":"$HOME/.pub-cache/bin"' >> ~/.zshrc
  • helpが出力されることを確認
$ fvm help                                                    
Flutter Version Management: A cli to manage Flutter SDK versions.

Usage: fvm <command> [arguments]

Global options:
-h, --help       Print this usage information.
    --verbose    Print verbose output.

Available commands:
  config     Set configuration for FVM
  flutter    Proxies Flutter Commands
  install    Installs Flutter SDK Version
  list       Lists installed Flutter SDK Version
  releases   Lists Flutter SDK releases.
  remove     Removes Flutter SDK Version
  use        Which Flutter SDK Version you would like to use
  version    Prints the currently-installed version of FVM

Run "fvm help <command>" for more information about a command.
  • 特定バージョンをインストール
fvm install 1.22.0  
  • 使用バージョンを指定
fvm use 1.22.0       
  • 指定したバージョンになっていることを確認
fvm flutter --version
Flutter 1.22.0 • channel unknown • unknown source
Framework • revision d408d302e2 (4 months ago) • 2020-09-29 11:49:17 -0700