My recommended IDE for Dart is modifying the text editor VSCode with Dart and Flutter extensions:
dart-code.dart-codedart-code.flutteralexisvt.flutter-snippets
If you do not need Flutter (server-side Dart, CLI tools, scripts), install only the Dart SDK.
Or download the archive directly from https://dart.dev/get-dart
curl -O https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-macos-x64-release.zip
unzip dartsdk-macos-x64-release.zip -d ~/development
export PATH="$PATH:$HOME/development/dart-sdk/bin"
For Apple Silicon:
curl -O https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-macos-arm64-release.zip
sudo apt install apt-transport-https
sudo sh -c "curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/dart.gpg'
echo "deb [signed-by=/usr/share/keyrings/dart.gpg] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main" | sudo tee /etc/apt/sources.list.d/dart_stable.list > /dev/null
Download the installer from https://dart.dev/get-dart. Run the .exe — it adds dart to your PATH automatically. Verify with:
If you are building Flutter applications, install the Flutter SDK instead. It bundles the Dart SDK — You do not need a separate Dart installation.
git clone https://github.com/flutter/flutter.git -b stable ~/development/flutter
export PATH="$PATH:$HOME/development/flutter/bin"
The flutter doctor command checks your environment and reports missing dependencies.
git clone https://github.com/flutter/flutter.git -b stable C:\development\flutter
setx PATH "%PATH%;C:\development\flutter\bin"