signals 0.4.0 copy "signals: ^0.4.0" to clipboard
signals: ^0.4.0 copied to clipboard

outdatedDart 1 only

Subscribable signals for Dart.

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