If I understand you correctly this is already existIf I understand you correctly this is already exist
final List<AddressCheckOptions> DEFAULTADDRESSES = List<AddressCheckOptions>.unmodifiable([
AddressCheckOptions(
InternetAddress('1.1.1.1'), // CloudFlare
),
AddressCheckOptions(
InternetAddress('208.67.222.222'), // OpenDNS
),
]);
DataConnectionChecker().addresses = DEFAULTADDRESSES;
bool result = await DataConnectionChecker().hasConnection; #140
If I understand you correctly this is already exist
_Originally posted by @guyluz11 in https://github.com/komapeb/data_connection_checker/issues/10#issuecomment-754994278_