Skip to content

Installing

Signals can run anywhere Dart can run including VM, WASM, Dart to JS, Dart to Native, Flutter, and on the server.

Signals is a single package that contains the imports for flutter and dart and may not show the correct platforms on pub.dev (doesn’t show dart only).

Stable

Signals.dart is available on pub.dev:

PackagePub
signalssignals
signals_coresignals_core
signals_fluttersignals_flutter
signals_lintsignals_lint

Add the following to your pubspec.yaml:

dependencies:
signals: latest

or from the command line:

Terminal window
$ dart pub add signals

Or if you’re using Flutter:

Terminal window
$ flutter pub add signals

Unstable

To reference the package from GitHub:

dependencies:
signals:
git:
url: https://github.com/rodydavis/signals.dart
ref: main

Usage

import 'package:signals/signals.dart';

or if you’re using Flutter:

import 'package:signals/signals_flutter.dart';