AddressCheckOptions class

This class should be pretty self-explanatory. If AddressCheckOptions.port or AddressCheckOptions.timeout are not specified, they both default to InternetConnectionChecker.DEFAULT_PORT and InternetConnectionChecker.DEFAULT_TIMEOUT Also... yeah, I'm not great at naming things.

Constructors

AddressCheckOptions({InternetAddress? address, String? hostname, int port = InternetConnectionChecker.DEFAULT_PORT, Duration timeout = InternetConnectionChecker.DEFAULT_TIMEOUT})
AddressCheckOptions Constructor

Properties

address InternetAddress?
An internet address or a Unix domain address. This object holds an internet address. If this internet address is the result of a DNS lookup, the address also holds the hostname used to make the lookup. An Internet address combined with a port number represents an endpoint to which a socket can connect or a listening socket can bind. Either address or hostname must not be null.
final
hashCode int
The hash code for this object.
no setterinherited
hostname String?
The hostname to use for this connection checker. Will be used to resolve an IP address to open the socket connection to. Can be used to verify against services that are not guaranteed to have a fixed IP address. Connecting via hostname also verifies that DNS resolution is working for the client. Either address or hostname must not be null.
final
port int
Port
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
Timeout Duration
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