host property

String host

Returns the hyperlink's URL's host and port (if different from the default port for the scheme).

Can be set, to change the URL's host and port.

MDN Reference

Implementation

_i2.String get host => _i4.getProperty(
      this,
      'host',
    );
void host=(String value)

Implementation

set host(_i2.String value) {
  _i4.setProperty(
    this,
    'host',
    value,
  );
}