I am looking for some pattern, principe, mechanism, etc... how to replace something like QT/pyQT signal/slot in Dart/JavaScript. I try implement little concept of signals (
github) with optional arguments length emit() method, object mapper for multiple signals to one slot.
It use noSuchMethod so there are problems with arguments type control, sender object must be set for every signal and SignalMapper must be checked before emitting data, etc. If Dart have something like JavaScript arguments it will be very useful or mirrors will help fix some problems when come completly to dart and dart2js.
At this moment is there some way to fundamentally improve my signals test library, or how to replace it with something completely different?