ConnectivityService class
A service class for monitoring and checking device connectivity.
Properties
-
checkStatus
→ Future<
List< ConnectivityResult> > -
Checks the current connectivity status of the device.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onConnectivityChanged
→ Stream<
List< ConnectivityResult> > -
Stream of connectivity changes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDynamicResult(
ConnectivityType type) → Future< List< ConnectivityResult> > - Gets the dynamic connectivity result based on the specified ConnectivityType.
-
isAvailable(
ConnectivityResult? result) → Future< bool> - Checks if the specified connectivity result is currently available.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onChangedStatus(
[ConnectivityType type = ConnectivityType.single]) → Future< bool> - Checks if the connectivity status changes based on the specified ConnectivityType.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- connectivity → Connectivity
-
Singleton instance of the
Connectivity
package.no setter - I → ConnectivityService
-
Singleton instance of ConnectivityService.
no setter