boundPort property

int get boundPort

The actual port bound by start; useful when port was 0.

Implementation

int get boundPort => _socket?.port ?? port;