isConnectedToEthernet function
returns true if connected to ethernet
Implementation
Future<bool> isConnectedToEthernet() async {
var connectivityResult = await Connectivity().checkConnectivity();
return connectivityResult.contains(ConnectivityResult.ethernet);
}