CacheableSecondaryAddressFinder constructor

CacheableSecondaryAddressFinder(
  1. String _rootDomain,
  2. int _rootPort, {
  3. Duration? cacheDuration,
  4. SecondaryUrlFinder? secondaryFinder,
  5. SecureSocketConfig? socketConfig,
})

Implementation

CacheableSecondaryAddressFinder(this._rootDomain, this._rootPort,
    {Duration? cacheDuration,
    SecondaryUrlFinder? secondaryFinder,
    SecureSocketConfig? socketConfig})
    : _cacheDuration = cacheDuration ?? defaultCacheDuration {
  _secondaryFinder = secondaryFinder ??
      SecondaryUrlFinder(_rootDomain, _rootPort, socketConfig: socketConfig);
}