sourceUrl property

String? sourceUrl
final

The URL of the document that sent the message, or null when unavailable.

This can differ from the web view's current URL if navigation has started since the message was sent. Never substitute the current URL when this field is null.

This is a document URL, not its security origin. In particular, a sandboxed document can report its served URL despite having an opaque origin. URLs such as about:blank also cannot be treated as HTTP(S) origins.

Implementation

final String? sourceUrl;