StealthInternetChecker constructor
StealthInternetChecker({})
Implementation
StealthInternetChecker({
this.checkInterval = const Duration(seconds: 2),
this.timeout = const Duration(seconds: 2),
this.failureThreshold = 2,
List<String>? hosts,
List<Uri>? endpoints,
InternetAddress? target,
int port = 53,
}) : lookupHosts = hosts ?? List.from(defaultLookupHosts),
probeEndpoints = endpoints ?? List.from(defaultProbeEndpoints) {
_controller = StreamController<bool>.broadcast(
onListen: _start,
onCancel: _stop,
);
}