WebAuth constructor

WebAuth(
  1. String _authEndpoint,
  2. Network _network,
  3. String _serverSigningKey,
  4. String _serverHomeDomain, {
  5. Client? httpClient,
})

Constructor

  • Parameter authEndpoint: Endpoint to be used for the authentication procedure. Usually taken from stellar.toml.
  • Parameter network: The network used.
  • Parameter serverSigningKey: The server public key, taken from stellar.toml.
  • Parameter serverHomeDomain: The server home domain of the server where the stellar.toml was loaded from

Implementation

WebAuth(this._authEndpoint, this._network, this._serverSigningKey,
    this._serverHomeDomain, {http.Client? httpClient}) {
  if (httpClient != null) {
    this.httpClient = httpClient;
  } else {
    this.httpClient = http.Client();
  }
}