AddressCheckOptions constructor
AddressCheckOptions({
- InternetAddress? address,
- String? hostname,
- int port = DEFAULT_PORT,
- Duration timeout = DEFAULT_TIMEOUT,
AddressCheckOptions Constructor
Implementation
AddressCheckOptions({
this.address,
this.hostname,
this.port = DEFAULT_PORT,
this.timeout = DEFAULT_TIMEOUT,
}) : assert(
(address != null || hostname != null) &&
((address != null) != (hostname != null)),
'Either address or hostname must be provided, but not both.',
);