isOnline property
bool
get
isOnline
Whether the application currently has network connectivity.
Implementation
bool get isOnline => _online;
set
isOnline
(bool value)
Updates connectivity and notifies subscribers.
Implementation
set isOnline(bool value) {
if (_online == value) return;
_online = value;
for (final listener in List<void Function(bool)>.of(_listeners)) {
listener(value);
}
}