This repository was archived by the owner on Jan 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -31,23 +31,25 @@ export 'package:connectivity_wrapper/src/widgets/connectivity_widget_wrapper.dar
31
31
enum ConnectivityStatus { CONNECTED , DISCONNECTED }
32
32
33
33
class ConnectivityWrapper {
34
- static final List <AddressCheckOptions > _defaultAddresses = List .unmodifiable ([
35
- AddressCheckOptions (
36
- InternetAddress ('1.1.1.1' ),
37
- port: DEFAULT_PORT ,
38
- timeout: DEFAULT_TIMEOUT ,
39
- ),
40
- AddressCheckOptions (
41
- InternetAddress ('8.8.4.4' ),
42
- port: DEFAULT_PORT ,
43
- timeout: DEFAULT_TIMEOUT ,
44
- ),
45
- AddressCheckOptions (
46
- InternetAddress ('208.67.222.222' ),
47
- port: DEFAULT_PORT ,
48
- timeout: DEFAULT_TIMEOUT ,
49
- ),
50
- ]);
34
+ static List <AddressCheckOptions > get _defaultAddresses => (kIsWeb)
35
+ ? []
36
+ : List .unmodifiable ([
37
+ AddressCheckOptions (
38
+ InternetAddress ('1.1.1.1' ),
39
+ port: DEFAULT_PORT ,
40
+ timeout: DEFAULT_TIMEOUT ,
41
+ ),
42
+ AddressCheckOptions (
43
+ InternetAddress ('8.8.4.4' ),
44
+ port: DEFAULT_PORT ,
45
+ timeout: DEFAULT_TIMEOUT ,
46
+ ),
47
+ AddressCheckOptions (
48
+ InternetAddress ('208.67.222.222' ),
49
+ port: DEFAULT_PORT ,
50
+ timeout: DEFAULT_TIMEOUT ,
51
+ ),
52
+ ]);
51
53
52
54
List <AddressCheckOptions > addresses = _defaultAddresses;
53
55
You can’t perform that action at this time.
0 commit comments