disconnect method

  1. @override
Future<void> disconnect()
override

Closes the connection and releases all resources.

After calling disconnect the driver should transition to BroadcastConnectionState.disconnected.

Implementation

@override
Future<void> disconnect() async => _connected = false;