Returns true if the device is connected to an IP network
Future<bool> hasConnection() async { return await getConnectivityResult() != ConnectivityResult.none; }