title: dart how to create, listen, and emits custom event?
body: <p>I have class like this : </p>
  
  <pre><code>class BaseModel {
    Map objects;
  
    // define constructor here
  
    fetch() {
      // fetch json from server and then load it to objects
      // emits an event here
    }
  
  }
  </code></pre>
  
  <p>Like <code>backbonejs</code> i want to emits a <code>change</code> event when i call <code>fetch</code> and create a listener for <code>change</code> event on my view.</p>
  
  <p>But from reading the documentation, i don't know where to start since there are so many that points to event, like <code>Event</code> <code>Events</code> <code>EventSource</code> and so on.</p>
  
  <p>Can you guys give me a hint?</p>