boundPort property

int? get boundPort

The actual port bound after start — useful when port was 0 (bind to any free port), e.g. in tests. Null before start / after stop.

Implementation

int? get boundPort => _server?.port;