close method
close closes the multiclient, including all clients it created and all sessions dialed and accepted. Calling close multiple times is allowed and will not have any effect.
Implementation
Future<void> close() async {
if (!(this.address.isNotEmpty == true)) {
return;
}
await _methodChannel.invokeMethod('close', {'_id': this.address});
_onConnectStreamController.close();
_onMessageStreamController.close();
_onErrorStreamController.close();
eventChannelStreamSubscription.cancel();
}