InternetChecker class
Helper class that provides a stream that determines whether an internet connection is established or not. This result is only determined by the hardware connectivity info of the device, f.e. WiFi is connected. So this stream could return although there is not an actual internet connection established.
Constructors
- InternetChecker.instance()
-
Returns the singleton instance of the class.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hasInternetConnectionStream
↔ Stream<
bool> -
Determines whether the device info displays an active internet connection.
getter/setter pair
- 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