Step -1: We should have Homebrew package manager, but if we don’t have it then install the Homebrew and run the following command. It will successfully download the Dart on the Mac.
- $brew tap dart-lang/dart
- $ brew install dart
Step -2: To verify which version we have installed, use the following command.
- $brew info dart