url property

String? get url

Get the URL the server is listening on. Returns null if the server is not listening.

Implementation

String? get url => _port == null ? null : 'http://localhost:$_port';