internetStatus property
Future<InternetStatus>
get
internetStatus
Returns the current internet connection status.
Returns a Future that completes with the InternetStatus indicating the current internet connection status.
Implementation
Future<InternetStatus> get internetStatus async => await hasInternetAccess
? InternetStatus.connected
: InternetStatus.disconnected;