hasConnectivity property

bool get hasConnectivity

Returns whether any active network connection exists.

Implementation

bool get hasConnectivity =>
    !(length == 1 && first == ConnectivityResult.none);