SEP38QuoteService constructor
SEP38QuoteService(
- String _serviceAddress, {
- 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();
}
}