ConnectivityChecker 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
- errorMessage ↔ String?
-
getter/setter pair
Static Methods
-
hasNetworkConnection(
) → Future< bool> - Check if the device has network connection
-
ping(
Future request()) → Future< Duration?> - Ping the request & get the ping duration
-
stream(
ConnectivityConfig config) → Stream< ConnectivityStatus> - Create a stream of ConnectivityStatus based on the ConnectivityConfig