InternetConnectionCheckerService class
Constructors
- InternetConnectionCheckerService()
-
Factory constructor to create a singleton instance of
InternetConnectionCheckerService.
factory
Properties
-
connectionStatus
→ Future<
InternetConnectionStatus> -
Check if internet access is available.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connectivityStream(
) → Stream< InternetConnectionStatus> - The source stream will be used by onInternetConnectionStatusChanged stream.
-
hasInternetAccess(
{List< InternetConnectionOptions> ? optionURLs}) → Future<bool> - Check if internet access is available through specified URLs.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onInternetConnectionStatusChanged(
{List< InternetConnectionOptions> ? optionURLs}) → Stream<InternetConnectionStatus> - Stream that emits changes in internet connection status.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited