setHost method

void setHost(
  1. String hostPrefix,
  2. String hostName
)

Sets the host name and the host prefix. This is only relevant if you need to switch between HTTPS environments.

Implementation

void setHost(String hostPrefix, String hostName) {
  _methodChannel.invokeMethod(
      "setHost", {'hostPrefix': hostPrefix, 'hostName': hostName});
}