NetworkUtils class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- connectivityResult ↔ ConnectivityResult
-
Current network status
getter/setter pair
- connectivitySubscription ↔ StreamSubscription
-
Stream of connectivity status.
getter/setter pair
- minimum ↔ ConnectivityResult
-
Minimum network level
getter/setter pair
Static Methods
-
dispose(
) → void - Stop listening to connectivity changes
-
init(
ConnectivityResult minimumNetworkLevel) → Future< void> - Initialize network utils
-
networkAccessible(
) → bool - Check if the internet connection is accessible
-
networkConnected(
) → bool - Check if there is internet connection
-
setMinimumNetworkLevel(
ConnectivityResult minimumNetworkLevel) → void - Set minimum network level
-
showNetworkAccessDeniedMessage(
{String? notConnectedMessage, String? notAccessibleMessage}) → dynamic - Show a message when there is no internet connection