connectionStatus property

Future<InternetConnectionStatus> get connectionStatus

Implementation

Future<InternetConnectionStatus> get connectionStatus async {
  return await hasConnection
      ? InternetConnectionStatus.connected
      : InternetConnectionStatus.disconnected;
}