AddressCheckOptions constructor

AddressCheckOptions({
  1. InternetAddress? address,
  2. String? hostname,
  3. int port = DEFAULT_PORT,
  4. 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.',
      );