FastConnectivityService constructor

FastConnectivityService({
  1. Duration? checkInterval,
  2. Duration? checkTimeout,
  3. List<String>? checkAddresses,
  4. List<int>? checkPorts,
  5. Duration? throttleDuration,
})

Implementation

factory FastConnectivityService({
  Duration? checkInterval,
  Duration? checkTimeout,
  List<String>? checkAddresses,
  List<int>? checkPorts,
  Duration? throttleDuration,
}) {
  if (!_hasBeenInstantiated) {
    instance._setConfig(
      checkInterval: checkInterval,
      checkTimeout: checkTimeout,
      checkAddresses: checkAddresses,
      checkPorts: checkPorts,
      throttleDuration: throttleDuration,
    );
    _hasBeenInstantiated = true;
  }

  return instance;
}