W3cubDocs

/Dart 2

port property

int port

Returns the port part of the authority component.

Returns the default port if there is no port number in the authority component. That's 80 for http, 443 for https, and 0 for everything else.

Implementation

int get port;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-core/Uri/port.html