HostReachabilityChecker class abstract
A class for custom implementation how the desired hosts are reached.
This abstract class provides a contract used by ConnectionChecker class. The contract assumes own implementation of methods to perform host lookup of desired url along with the reachabiltiy of provided hosts.
Example usage:
class CustomReachabilityChecker extends HostReachabilityChecker { [...] }
final connecteo = ConnectionChecker.fromReachabilityChecker(
hostReachabilityChecker: CustomReachabilityChecker(), [...]
);
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
-
canReachAnyHost(
) → Future< bool> - Should check if desired hosts are reachable (e.g. via opening a socket connection to each address)
-
hostLookup(
) → Future< bool> - Should perform a host lookup.
-
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