isOnline property

bool get isOnline

Indicates if the app has access to the Internet. Assume we're online if null

Implementation

bool get isOnline =>
    _connectivityStatus == null || !_connectivityStatus!.contains('none');