connectivityResult property

Future<ConnectivityResult> get connectivityResult

Implementation

Future<ConnectivityResult> get connectivityResult async {
  return await Connectivity().checkConnectivity().then((value) {
    return value.first;
  });
}