young-europe / Members-Platform-bug-reports

7 stars 0 forks source link

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

Closed vodafone999 closed 2 years ago

vodafone999 commented 2 years ago

If 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;

_Originally posted by @guyluz11 in https://github.com/komapeb/data_connection_checker/issues/10#issuecomment-754994278_