I see the error below when targeting web. Not sure if this is just a limitation of flutter for web at this point or a problem with this library.
errors.dart:145 Uncaught (in promise) Error: Unsupported operation: InternetAddress
at Object.throw_ [as throw] (errors.dart:191)
at Function.new (io_patch.dart:408)
at get DEFAULT_ADDRESSES (data_connection_checker.dart:61)
at Function.desc.get [as DEFAULT_ADDRESSES] (utils.dart:75)
at new data_connection_checker.DataConnectionChecker.__ (data_connection_checker.dart:89)
at get _instance (data_connection_checker.dart:109)
at Function.desc.get [as _instance] (utils.dart:75)
at Function.new (data_connection_checker.dart:93)
at network_info.NetworkInfoImpl.new._checkConnection (network_info.dart:39)
at _checkConnection.next (<anonymous>)
at runBody (async_patch.dart:84)
at Object._async [as async] (async_patch.dart:123)
at network_info.NetworkInfoImpl.new.[_checkConnection] (network_info.dart:38)
at new network_info.NetworkInfoImpl.new (network_info.dart:16)
at main$ (main.dart:62)
at main$.next (<anonymous>)
at onValue (async_patch.dart:45)
at _RootZone.runUnary (zone.dart:1379)
at _FutureListener.thenAwait.handleValue (future_impl.dart:137)
at handleValueCallback (future_impl.dart:678)
at Function._propagateToListeners (future_impl.dart:707)
at _Future.new.[_completeWithValue] (future_impl.dart:522)
at future.dart:400
at _RootZone.runUnary (zone.dart:1379)
at _FutureListener.then.handleValue (future_impl.dart:137)
at handleValueCallback (future_impl.dart:678)
at Function._propagateToListeners (future_impl.dart:707)
at _Future.new.[_completeWithValue] (future_impl.dart:522)
at async._AsyncCallbackEntry.new.callback (future_impl.dart:552)
at Object._microtaskLoop (schedule_microtask.dart:41)
at _startMicrotaskLoop (schedule_microtask.dart:50)
at async_patch.dart:166
Skipping compiling my_proj|lib/main_web_entrypoint.dart with ddc because some of its
transitive libraries have sdk dependencies that not supported on this platform:
data_connection_checker|lib/data_connection_checker.dart