connectionStatus property

Future<AwsConnectionStatus> connectionStatus

Start a request to each address. If at least one of the addresses is accessible assume there is an Internet connection available and return AwsConnectionStatus.connected. AwsConnectionStatus.disconnected otherwise.

Implementation

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