SEP38QuoteService constructor

SEP38QuoteService(
  1. String _serviceAddress, {
  2. Client? httpClient,
})

Constructor accepting the serviceAddress from the server (ANCHOR_QUOTE_SERVER in stellar.toml). It also accepts an optional httpClient to be used for requests. If not provided, this service will use its own http client.

Implementation

SEP38QuoteService(this._serviceAddress, {http.Client? httpClient}) {
  if (httpClient != null) {
    this.httpClient = httpClient;
  } else {
    this.httpClient = http.Client();
  }
}