title: Flutter Server Side Events, reactive UI
body: <p>I'm trying to get my application to respond to an SSE server-sent-events stream. The stream has many types of events that appear, and parts of the application are to update <em>only</em> if the <em>type</em> of event that I receive is associated with that UI element. </p>
  
  <p>Sample json stream response (For example here, I wouldn't want to change the UI if I get a heartbeat):</p>
  
  <pre><code>event:heartbeat
  data:{"type":"heartbeat"}
  
  event:gwy
  data:{"a":532289,"lastUpdatedDateInMilliseconds":1587490669503,"t":1587490669503,"g":12479,"api":0,"cellSignalStrength":15}
  
  event:gwy
  data:{"a":532289,"lastUpdatedDateInMilliseconds":1587490694685,"t":1587490694685,"g":12479,"api":0,"cellSignalStrength":15}
  
  </code></pre>
  
  <p>The format of this data is a subset of the Global data variable (The event should replace that part of the global variable). </p>
  
  <p>Any pointers or resources greatly appreciated. </p>