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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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. 🙂