protocol property
String
protocol
A string containing the protocol scheme of the URL, including the final ':'.
Implementation
String get protocol => '${_uri.scheme}:';
Implementation
set protocol(String value) => _uri = _uri.replace(
scheme:
value.endsWith(':') ? value.substring(0, value.length - 1) : value);