MessageSender class

Constructors

MessageSender({Tab? tab, int? frameId, int? guestProcessId, int? guestRenderFrameRoutingId, String? id, String? url, String? nativeApplication, String? tlsChannelId, String? origin, String? documentId, String? documentLifecycle})
MessageSender.fromJS(MessageSender _wrapped)

Properties

documentId String?
A UUID of the document that opened the connection.
getter/setter pair
documentLifecycle String?
The lifecycle the document that opened the connection is in at the time the port was created. Note that the lifecycle state of the document may have changed since port creation.
getter/setter pair
frameId int?
The frame that opened the connection. 0 for top-level frames, positive for child frames. This will only be set when tab is set.
getter/setter pair
guestProcessId int?
The guest process id of the requesting webview, if available. Only available for component extensions.
getter/setter pair
guestRenderFrameRoutingId int?
The guest render frame routing id of the requesting webview, if available. Only available for component extensions.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The ID of the extension or app that opened the connection, if any.
getter/setter pair
nativeApplication String?
The name of the native application that opened the connection, if any.
getter/setter pair
origin String?
The origin of the page or frame that opened the connection. It can vary from the url property (e.g., about:blank) or can be opaque (e.g., sandboxed iframes). This is useful for identifying if the origin can be trusted if we can't immediately tell from the URL.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tab Tab?
The tabs.Tab which opened the connection, if any. This property will only be present when the connection was opened from a tab (including content scripts), and only if the receiver is an extension, not an app.
getter/setter pair
tlsChannelId String?
The TLS channel ID of the page or frame that opened the connection, if requested by the extension or app, and if available.
getter/setter pair
toJS → MessageSender
no setter
url String?
The URL of the page or frame that opened the connection. If the sender is in an iframe, it will be iframe's URL not the URL of the page which hosts it.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited