onlineStream property

Stream<bool> get onlineStream

Emits true/false only when going online or offline. UNetwork.onlineStream.listen((on) => on ? retry() : null)

Implementation

static Stream<bool> get onlineStream => UConnectivity.onlineStream;