Skip to main content

Installation

To use Relic, you must have the Dart SDK installed on your machine.

note

Relic requires Dart SDK 3.5 or later.

If Dart is not installed, follow the official guide: Install Dart.

Verify Dart installation

You can verify your Dart installation by running the following command:

dart --version

You should see a version compatible with the requirement above.

Add Relic to your project

To add Relic to your project, run the following command:

dart pub add relic

Alternatively, add it manually to your pubspec.yaml file:

dependencies:
relic: <latest_version>

Then run:

dart pub get