isConnectedToOther function

Future<bool> isConnectedToOther()

returns true if connected to other

Implementation

Future<bool> isConnectedToOther() async {
  var connectivityResult = await Connectivity().checkConnectivity();
  return connectivityResult.contains(ConnectivityResult.other);
}