Get Dart Packages
Specify the repository URL and an access token for the
dart
tool:dart pub token add https://dart.pkg.jetbrains.space/mycompany/p/projectkey/mydarthttps://dart.pkg.jetbrains.space/mycompany/p/projectkey/mydart
is the repository URLmycompany
is the name of your company in Space,mydart
is the repository name.
If you are not sure about the URL, you can copy the URL of a particular repository on the Packages page.
When asked for a token, specify your personal access token. You can manage the created token on the My Profile | Security | Personal Tokens page.
In Space, open Packages and find the desired Dart package.
Open the package properties page.
In the snippets field, copy the snippet code. For example, it might look like this:
dart pub add --hosted-url=https://dart.pkg.jetbrains.space/mycompany/p/projectkey/mydart dart_package:1.0.0On your local machine, open the root directory of the project where you want to add the dependency.
Run the copied snippet.