port property

int get port

The port number, or -1 if not explicitly set.

Implementation

int get port => _uri.port == 0 ? -1 : _uri.port;