refresh static method
Asks the OS again right now, skipping offlineGrace.
Implementation
static Future<UNetworkStatus> refresh() async {
await init();
final Map<String, Object?>? map = kIsWeb ? UWebBridge.networkStatus() : await UDeviceChannel.network();
if (map != null && map.isNotEmpty) {
_grace?.cancel();
_grace = null;
_set(UNetworkStatus.fromMap(map));
}
return status;
}