isOnline property

bool get isOnline

True when a network is connected (instant, no request; use hasInternet() to be sure). if (UNetwork.isOnline) sync()

Implementation

static bool get isOnline => UConnectivity.isOnline;