InternetChecker constructor

InternetChecker({
  1. InternetCheckOptions? options,
  2. SocketProbe? probe,
})

Creates an InternetChecker with optional configuration options and custom probe.

Implementation

InternetChecker({
  InternetCheckOptions? options,
  SocketProbe? probe,
})  : options = options ?? const InternetCheckOptions(),
      _probe = probe ?? defaultSocketProbe;