RemotePort class Null safety

Remote message port for sending messages.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
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.
read-onlyinherited
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 non-existent 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.