observatoryUrl property

Uri observatoryUrl

A relative URL for humans to inspect and interact with this isolate in the Observatory UI.

Because the VM service client doesn't always know the full location of the Observatory UI, this needs to be resolved against the absolute URL of the Observatory UI in order to be usable.

Implementation

Uri get observatoryUrl => Uri.parse(
    "#/inspect?isolateId=${Uri.encodeQueryComponent(_scope.isolateId)}");