changeServiceConnection method

void changeServiceConnection(
  1. bool https,
  2. String host,
  3. String port
)

Method used to change parameters to connect in users service bool https indicates if the client will use http or https String host the host of the service String port the port used by the service

Implementation

void changeServiceConnection(bool https, String host, String port) {
  this.host = host;
  this.port = port;
  _handleHTTP(https);
  _createURL();
}