onToDeviceEvent property

CachedStreamController<ToDeviceEvent> onToDeviceEvent
final

The onToDeviceEvent is called when there comes a new to device event. It is already decrypted if necessary.

Implementation

final CachedStreamController<ToDeviceEvent> onToDeviceEvent =
    CachedStreamController();