AddressCheckOptions class
This class should be pretty self-explanatory. It takes InternetAddress and int for port and Duration for timeout which then uses CheckInternet to check if the address is reachable.
Constructors
- AddressCheckOptions(InternetAddress address, {int port = Default.defaultPort, Duration timeout = Default.defaultTimeout})
-
In constructor for AddressCheckOptions. Set default
port
andtimeout
. So, that while creating instance ifport
ortimeout
is not set, it will be set to default values.
Properties
- address → InternetAddress
-
This the address to check for a connection.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- port → int
-
This is the port to use when checking for a connection.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Timeout is used to determine the amount of time to wait for a connection
to be established before considering the connection to have failed.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited