ConnectivityCheckCallback typedef
ConnectivityCheckCallback =
Future<InternetCheckResult> Function(InternetCheckOption option)
A callback function for checking if a specific internet endpoint is reachable.
Takes a single InternetCheckOption and returns a Future that completes with an InternetCheckResult.
This allows for complete customization of how connectivity is checked for each endpoint.
Implementation
typedef ConnectivityCheckCallback = Future<InternetCheckResult> Function(
InternetCheckOption option,
);