hasEthernet static method

Future<bool> hasEthernet()

Implementation

static Future<bool> hasEthernet() async {
  final List<ConnectivityResult> connectivityResult = await Connectivity().checkConnectivity();
  return connectivityResult.contains(ConnectivityResult.ethernet);
}