disconnect method
Implementation
Future<void> disconnect() async {
final svc = _service;
_service = null;
await _isolateEvents?.cancel();
_isolateEvents = null;
_flutterIsolate = null;
_connectedUri = null;
if (svc != null) await svc.dispose();
}