onEvent property
- @Deprecated('Use `onTimelineEvent`, `onHistoryEvent` or `onNotification` instead.')
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
// ignore: deprecated_member_use_from_same_package
@Deprecated(
'Use `onTimelineEvent`, `onHistoryEvent` or `onNotification` instead.',
)
final CachedStreamController<EventUpdate> onEvent = CachedStreamController();