DnsOverHttps constructor

DnsOverHttps(
  1. String url,
  2. {Duration timeout = const Duration(milliseconds: 5000),
  3. bool maximalPrivacy = false}
)

Implementation

DnsOverHttps(this.url,
    {this.timeout = const Duration(milliseconds: 5000),
    this.maximalPrivacy = false})
    : _uri = Uri.parse(url) {
  _client.connectionTimeout = timeout;
}