onDisconnect property

Stream<void> get onDisconnect

Fires once when the VM service WebSocket closes (hot restart, app kill, etc.). Use this to trigger auto-reconnect. Implementors broadcast one event then close the stream.

Implementation

Stream<void> get onDisconnect;