RemotePort class

Remote message port for sending messages.

Properties

hashCode int
The hash code for this object.
no setterinherited
portName String
The remote port name.
final
remoteAppId String
The remote application ID.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trusted bool
Whether the remote port is trusted.
final

Methods

check() Future<bool>
Checks whether the remote port is registered by the remote app.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(dynamic message) Future<void>
Sends a message through the remote port.
sendWithLocalPort(dynamic message, LocalPort localPort) Future<void>
Sends a message through the remote port with localPort information.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

connect(String remoteAppId, String portName, {bool trusted = true}) Future<RemotePort>
Connects to a remote port named portName.