Returns true if the device has internet connectivity (Web/Wasm).
Future<bool> checkConnectivity(String host) async { try { return web.window.navigator.onLine; } catch (_) { return true; } }