InternetConnectionChecker class

Constructors

InternetConnectionChecker()
factory

Properties

addresses List<AddressCheckOptions>
getter/setter pair
checkInterval Duration
getter/setter pair
connectionStatus Future<InternetConnectionStatus>
no setter
hasConnection Future<bool>
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
no setter
isActivelyChecking bool
no setter
onStatusChange Stream<InternetConnectionStatus>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isHostReachable(AddressCheckOptions options) Future<AddressCheckResult>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

DEFAULT_ADDRESSES List<AddressCheckOptions>
Address Provider Info 1.1.1.1 CloudFlare https://1.1.1.1 1.0.0.1 CloudFlare https://1.1.1.1 8.8.8.8 Google https://developers.google.com/speed/public-dns/ 8.8.4.4 Google https://developers.google.com/speed/public-dns/ 208.67.222.222 OpenDNS https://use.opendns.com/ 208.67.220.220 OpenDNS https://use.opendns.com/
final

Constants

DEFAULT_INTERVAL → const Duration
DEFAULT_PORT → const int
DEFAULT_TIMEOUT → const Duration