/Dart 2

hasPort property

bool hasPort

Returns whether the URI has an explicit port.

If the port number is the default port number (zero for unrecognized schemes, with http (80) and https (443) being recognized), then the port is made implicit and omitted from the URI.


bool get hasPort;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.