checkNetworkConnection method

Future<bool> checkNetworkConnection()

Implementation

Future<bool> checkNetworkConnection() async {
  return await (_connectivity.checkConnectivity()) == ConnectivityResult.none ? false : true;
}