isNetworkAvailable static method

Future<bool> isNetworkAvailable()

Implementation

static Future<bool> isNetworkAvailable() async {
  bool result = await InternetConnectionChecker().hasConnection;
  return result;
}