port property

int get port

The server port, if the server is not running, it will return 0

Implementation

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