getConnectivityStatus method

Future<bool> getConnectivityStatus()

get current internet status

Implementation

Future<bool> getConnectivityStatus() {
  return currentContext
      .dependOnInheritedWidgetOfExactType<ConnectivityInheritedWidget>()!
      .controller!
      .getConnectivityStatus();
}