Question

I would like to fire events in my classes to let other classes get notified, but having tried looking into the documentation I can't seem to find anything.

Should I create my own Observable class that has this?

Was it helpful?

Solution

The Dart event model is mainly focused on HTML DOM events. There are several community efforts that implement a more generalized event model:

Dartlib Event Model (Kevin Moore)

DartNet Event Model (My project), .net inspired

In the Buckshot library there is also an ObservableList implementation that uses the event model, but this isn't the only ObservableList I've seen floating around so you may find something more suitable to your needs. :)

OTHER TIPS

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top