FastConnectivityService class

Service for monitoring internet connectivity status.

This service provides streams and methods to check device connectivity and the availability of remote services. It periodically checks connectivity and also listens for system connectivity changes.

Constructors

FastConnectivityService.new({Duration? checkInterval, Duration? checkTimeout, List<String>? checkAddresses, List<int>? checkPorts, Duration? throttleDuration})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onInternetConnectivityChanged Stream<FastConnectivityStatus>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceAvailabilityStream Stream<bool>
no setter

Methods

checkDeviceConnectivity() Future<bool>
checkOverallConnectivity() Future<FastConnectivityStatus>
checkServiceAvailability() Future<bool>
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

instance FastConnectivityService
Singleton instance.
final

Constants

debugLabel → const String