signals 0.6.0

Signals

Subscribable signals for Dart.

API Reference Documentation

For example:

var s = new Signal();
s.on((arg) => print('Emitted signal with arg: $arg'));
s.emit(1)

> Emitted signal with arg: 1

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  signals: ">=0.6.0 <0.7.0"

If your package is an application package you should use any as the version constraint.

2. Install it

If you're using the Dart Editor, choose:

Menu > Tools > Pub Install

Or if you want to install from the command line, run:

$ pub install

3. Import it

Now in your Dart code, you can use:

import 'package:signals/signals.dart';

About

Subscribable signals for Dart.

Author

Email afshar@google.com Ali Afshar

Homepage

github.com/aliafshar/dart-signals

Documentation

www.dartdocs.org/documentation/signals/0...

Uploader

afshar@google.com

Share