isOffline property
bool
get
isOffline
Whether the device is known to be offline.
Note this is false while the status is still NetworkStatus.unknown,
so requests are not blocked before the first check completes.
Implementation
bool get isOffline => _currentStatus == NetworkStatus.offline;