disConnect method
Implementation
Future<void> disConnect() async {
if (kDebugMode) {
print('waiting for client to shut down...');
}
serviceClient.dispose();
await serviceClient.onDone;
connected = false;
if (kDebugMode) {
print('service client shut down');
}
}