Свойство port
int portВозвращает часть порта компонента authority.
Возвращает порт по умолчанию, если в компоненте authority нет номера порта. Это 80 для http, 443 для https и 0 для всех остальных случаев.
Исходный код
int get port;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-core/Uri/port.html