protocol property

String protocol

A string containing the protocol scheme of the URL, including the final ':'.

MDN reference

Implementation

String get protocol => '${_uri.scheme}:';
void protocol=(String value)

Implementation

set protocol(String value) => _uri = _uri.replace(
    scheme:
        value.endsWith(':') ? value.substring(0, value.length - 1) : value);