host property

String get host

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

Can be set, to navigate to the same URL with a changed host and port.

MDN Reference

Implementation

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

Implementation

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