closeSocket method

dynamic closeSocket()

Implementation

closeSocket() {
  if (_socket != null) {
    _socket?.close();
  }
}