checkConnection method
Implementation
Future<ConnectivityResult> checkConnection() async {
var connectivityResult = await (Connectivity().checkConnectivity());
return connectivityResult;
}
Future<ConnectivityResult> checkConnection() async {
var connectivityResult = await (Connectivity().checkConnectivity());
return connectivityResult;
}