port property

String port

A string containing the port number of the URL.

MDN reference

Implementation

String get port => _uri.hasPort ? _uri.port.toString() : '';
void port=(String value)

Implementation

set port(String value) => _uri = _uri.replace(port: int.parse(value));