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:
Package | Pub |
---|---|
signals | |
signals_core | |
signals_flutter | |
signals_lint |
Add the following to your pubspec.yaml
:
or from the command line:
Or if you’re using Flutter:
Unstable
To reference the package from GitHub:
Usage
or if you’re using Flutter: