onEvent property

CachedStreamController<EventUpdate> onEvent
final

The newEvent signal is the most important signal in this concept. Every time the app receives a new synchronization, this event is called for every signal to update the GUI. For example, for a new message, it is called: onRoomEvent( "m.room.message", "!chat_id:server.com", "timeline", {sender: "@bob:server.com", body: "Hello world"} )

Implementation

final CachedStreamController<EventUpdate> onEvent = CachedStreamController();