onDisconnect property
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
@override
Stream<void> get onDisconnect => _disconnectController.stream;