protocol property

String get protocol

Returns the Location object's URL's scheme.

Can be set, to navigate to the same URL with a changed scheme.

MDN Reference

Implementation

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

Implementation

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