checkConnectivity method
Checks the connection status of the device.
Implementation
@override
Future<ConnectivityResult> checkConnectivity() async {
final client = createClient();
await client.connect();
final connectivity = _getConnectivity(client);
await client.close();
return connectivity;
}