port property

int get port

The server port; 0 while the server is not running.

Implementation

int get port => _httpServer?.port ?? 0;