boundPort property

int? get boundPort

The port actually listened on once start completes — differs from config.port when that is 0 or a fallback port was taken.

Implementation

int? get boundPort => _server?.port;